summaryrefslogtreecommitdiffstats
path: root/examples/counter/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/counter/src/main.rs')
-rw-r--r--examples/counter/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/counter/src/main.rs b/examples/counter/src/main.rs
index 848c4c6c..81684c1c 100644
--- a/examples/counter/src/main.rs
+++ b/examples/counter/src/main.rs
@@ -1,4 +1,5 @@
use iced::widget::{button, column, text, Column};
+use iced::Center;
pub fn main() -> iced::Result {
iced::run("A cool counter", Counter::update, Counter::view)
@@ -34,6 +35,6 @@ impl Counter {
button("Decrement").on_press(Message::Decrement)
]
.padding(20)
- .center_x()
+ .align_x(Center)
}
}