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

@ -1,4 +1,4 @@
use iced::widget::{column, pick_list, scrollable, space_y};
use iced::widget::{column, pick_list, scrollable, space};
use iced::{Center, Element, Fill};
pub fn main() -> iced::Result {
@ -33,10 +33,10 @@ impl Example {
.placeholder("Choose a language...");
let content = column![
space_y().height(600),
space().height(600),
"Which is your favorite language?",
pick_list,
space_y().height(600),
space().height(600),
]
.width(Fill)
.align_x(Center)