Re-export variants of Length and alignment types
This commit is contained in:
parent
f9dd5cbb09
commit
76737351ea
51 changed files with 255 additions and 395 deletions
|
|
@ -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::{Color, Element, Length, Subscription, Task};
|
||||
use iced::{Bottom, Color, Element, Fill, Subscription, Task};
|
||||
|
||||
use std::fmt;
|
||||
|
||||
|
|
@ -96,17 +96,17 @@ impl App {
|
|||
let content = container(
|
||||
column![
|
||||
row![text("Top Left"), horizontal_space(), text("Top Right")]
|
||||
.height(Length::Fill),
|
||||
.height(Fill),
|
||||
center(button(text("Show Modal")).on_press(Message::ShowModal)),
|
||||
row![
|
||||
text("Bottom Left"),
|
||||
horizontal_space(),
|
||||
text("Bottom Right")
|
||||
]
|
||||
.align_bottom()
|
||||
.height(Length::Fill),
|
||||
.align_y(Bottom)
|
||||
.height(Fill),
|
||||
]
|
||||
.height(Length::Fill),
|
||||
.height(Fill),
|
||||
)
|
||||
.padding(10);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue