Reuse Text widget from iced_native in iced_pure
This commit is contained in:
parent
182fb9446c
commit
dee3dba632
3 changed files with 19 additions and 116 deletions
|
|
@ -43,7 +43,7 @@ impl Sandbox for Counter {
|
|||
.padding(20)
|
||||
.align_items(Alignment::Center)
|
||||
.push(button("Increment").on_press(Message::IncrementPressed))
|
||||
.push(text(self.value).size(50))
|
||||
.push(text(self.value.to_string()).size(50))
|
||||
.push(button("Decrement").on_press(Message::DecrementPressed))
|
||||
.into()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue