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, 1 insertions, 2 deletions
diff --git a/examples/counter/src/main.rs b/examples/counter/src/main.rs
index 0dd7a976..848c4c6c 100644
--- a/examples/counter/src/main.rs
+++ b/examples/counter/src/main.rs
@@ -1,5 +1,4 @@
use iced::widget::{button, column, text, Column};
-use iced::Alignment;
pub fn main() -> iced::Result {
iced::run("A cool counter", Counter::update, Counter::view)
@@ -35,6 +34,6 @@ impl Counter {
button("Decrement").on_press(Message::Decrement)
]
.padding(20)
- .align_items(Alignment::Center)
+ .center_x()
}
}