Add helper functions for alignment to widget module

This commit is contained in:
Héctor Ramón Jiménez 2025-01-24 15:55:24 +01:00
parent 75a6f32a5e
commit f8337b8da7
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
12 changed files with 208 additions and 64 deletions

View file

@ -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()
}
}
}