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,5 +1,5 @@
use iced::widget::{
button, center, column, container, horizontal_space, scrollable, text,
button, center, center_x, column, horizontal_space, scrollable, text,
text_input,
};
use iced::window;
@ -193,6 +193,6 @@ impl Window {
.align_x(Center),
);
container(content).center_x(200).into()
center_x(content).width(200).into()
}
}