summaryrefslogtreecommitdiffstats
path: root/examples/modal
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-12 15:11:30 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-12 15:14:43 +0200
commitf9dd5cbb099bbe44a57b6369be54a442363b7a8d (patch)
treefe16084bc47faadc32d698aa446ea202f7949a4c /examples/modal
parentbe06060117da061ad8cad94ab0830c06def6b147 (diff)
downloadiced-f9dd5cbb099bbe44a57b6369be54a442363b7a8d.tar.gz
iced-f9dd5cbb099bbe44a57b6369be54a442363b7a8d.tar.bz2
iced-f9dd5cbb099bbe44a57b6369be54a442363b7a8d.zip
Introduce helper methods for alignment for all widgets
Diffstat (limited to 'examples/modal')
-rw-r--r--examples/modal/src/main.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs
index 413485e7..6f0f7182 100644
--- a/examples/modal/src/main.rs
+++ b/examples/modal/src/main.rs
@@ -5,7 +5,7 @@ use iced::widget::{
self, button, center, column, container, horizontal_space, mouse_area,
opaque, pick_list, row, stack, text, text_input,
};
-use iced::{Alignment, Color, Element, Length, Subscription, Task};
+use iced::{Color, Element, Length, Subscription, Task};
use std::fmt;
@@ -96,7 +96,6 @@ impl App {
let content = container(
column![
row![text("Top Left"), horizontal_space(), text("Top Right")]
- .align_items(Alignment::Start)
.height(Length::Fill),
center(button(text("Show Modal")).on_press(Message::ShowModal)),
row![
@@ -104,7 +103,7 @@ impl App {
horizontal_space(),
text("Bottom Right")
]
- .align_items(Alignment::End)
+ .align_bottom()
.height(Length::Fill),
]
.height(Length::Fill),