summaryrefslogtreecommitdiffstats
path: root/examples/todos
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-24 15:55:24 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-24 15:55:24 +0100
commitf8337b8da7ff6bcf876b54d1c7dac460d2e03747 (patch)
tree495d96fc62b23af7ce2622e87892ca823f1c61fc /examples/todos
parent75a6f32a5ef49bb8e6d16506d84b07822a33c41b (diff)
downloadiced-f8337b8da7ff6bcf876b54d1c7dac460d2e03747.tar.gz
iced-f8337b8da7ff6bcf876b54d1c7dac460d2e03747.tar.bz2
iced-f8337b8da7ff6bcf876b54d1c7dac460d2e03747.zip
Add helper functions for alignment to `widget` module
Diffstat (limited to 'examples/todos')
-rw-r--r--examples/todos/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs
index e86e23b5..7759552c 100644
--- a/examples/todos/src/main.rs
+++ b/examples/todos/src/main.rs
@@ -1,6 +1,6 @@
use iced::keyboard;
use iced::widget::{
- self, button, center, checkbox, column, container, keyed_column, row,
+ self, button, center, center_x, checkbox, column, keyed_column, row,
scrollable, text, text_input, Text,
};
use iced::window;
@@ -237,7 +237,7 @@ impl Todos {
.spacing(20)
.max_width(800);
- scrollable(container(content).center_x(Fill).padding(40)).into()
+ scrollable(center_x(content).padding(40)).into()
}
}
}