Rename *_space to space_x and space_y

This commit is contained in:
Héctor Ramón Jiménez 2025-09-11 07:10:53 +02:00
parent c684fbd6af
commit 89b7585465
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
22 changed files with 92 additions and 113 deletions

View file

@ -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),
)