diff --git a/examples/counter/src/main.rs b/examples/counter/src/main.rs index b85db70d..d9311076 100644 --- a/examples/counter/src/main.rs +++ b/examples/counter/src/main.rs @@ -1,4 +1,4 @@ -use iced::{button, Button, Column, Element, Sandbox, Settings, Text}; +use iced::{button, Align, Button, Column, Element, Sandbox, Settings, Text}; pub fn main() { Counter::run(Settings::default()) @@ -42,6 +42,7 @@ impl Sandbox for Counter { fn view(&mut self) -> Element { Column::new() .padding(20) + .align_items(Align::Center) .push( Button::new(&mut self.increment_button, Text::new("Increment")) .on_press(Message::IncrementPressed),