Introduce and use CrossAlign enum for Column and Row
This commit is contained in:
parent
95e4791a1e
commit
5fae6e59ff
33 changed files with 166 additions and 115 deletions
|
|
@ -1,4 +1,6 @@
|
|||
use iced::{button, Align, Button, Column, Element, Sandbox, Settings, Text};
|
||||
use iced::{
|
||||
button, Button, Column, CrossAlign, Element, Sandbox, Settings, Text,
|
||||
};
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
Counter::run(Settings::default())
|
||||
|
|
@ -42,7 +44,7 @@ impl Sandbox for Counter {
|
|||
fn view(&mut self) -> Element<Message> {
|
||||
Column::new()
|
||||
.padding(20)
|
||||
.align_items(Align::Center)
|
||||
.align_items(CrossAlign::Center)
|
||||
.push(
|
||||
Button::new(&mut self.increment_button, Text::new("Increment"))
|
||||
.on_press(Message::IncrementPressed),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue