Rename space_{x,y} to space::{horizontal,vertical}
This commit is contained in:
parent
299eb54d6f
commit
611f89fc59
25 changed files with 143 additions and 142 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue