Rename *_space to space_x and space_y
This commit is contained in:
parent
c684fbd6af
commit
89b7585465
22 changed files with 92 additions and 113 deletions
|
|
@ -2,8 +2,8 @@ use iced::event::{self, Event};
|
|||
use iced::keyboard;
|
||||
use iced::keyboard::key;
|
||||
use iced::widget::{
|
||||
button, center, column, container, horizontal_space, mouse_area, opaque,
|
||||
operation, pick_list, row, stack, text, text_input,
|
||||
button, center, column, container, mouse_area, opaque, operation,
|
||||
pick_list, row, space_x, stack, text, text_input,
|
||||
};
|
||||
use iced::{Bottom, Color, Element, Fill, Subscription, Task};
|
||||
|
||||
|
|
@ -95,16 +95,12 @@ impl App {
|
|||
fn view(&self) -> Element<'_, Message> {
|
||||
let content = container(
|
||||
column![
|
||||
row![text("Top Left"), horizontal_space(), text("Top Right")]
|
||||
row![text("Top Left"), space_x(), text("Top Right")]
|
||||
.height(Fill),
|
||||
center(button(text("Show Modal")).on_press(Message::ShowModal)),
|
||||
row![
|
||||
text("Bottom Left"),
|
||||
horizontal_space(),
|
||||
text("Bottom Right")
|
||||
]
|
||||
.align_y(Bottom)
|
||||
.height(Fill),
|
||||
row![text("Bottom Left"), space_x(), text("Bottom Right")]
|
||||
.align_y(Bottom)
|
||||
.height(Fill),
|
||||
]
|
||||
.height(Fill),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue