Rename space_{x,y} to space::{horizontal,vertical}

This commit is contained in:
Héctor Ramón Jiménez 2025-09-17 23:49:01 +02:00
parent 299eb54d6f
commit 611f89fc59
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
25 changed files with 143 additions and 142 deletions

View file

@ -3,7 +3,7 @@ use iced::keyboard;
use iced::keyboard::key;
use iced::widget::{
button, center, column, container, mouse_area, opaque, operation,
pick_list, row, space_x, stack, text, text_input,
pick_list, row, space, stack, text, text_input,
};
use iced::{Bottom, Color, Element, Fill, Subscription, Task};
@ -95,12 +95,16 @@ impl App {
fn view(&self) -> Element<'_, Message> {
let content = container(
column![
row![text("Top Left"), space_x(), text("Top Right")]
row![text("Top Left"), space::horizontal(), text("Top Right")]
.height(Fill),
center(button(text("Show Modal")).on_press(Message::ShowModal)),
row![text("Bottom Left"), space_x(), text("Bottom Right")]
.align_y(Bottom)
.height(Fill),
row![
text("Bottom Left"),
space::horizontal(),
text("Bottom Right")
]
.align_y(Bottom)
.height(Fill),
]
.height(Fill),
)