Reuse Text widget from iced_native in iced_pure

This commit is contained in:
Héctor Ramón Jiménez 2022-02-12 14:22:17 +07:00
parent 182fb9446c
commit dee3dba632
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 19 additions and 116 deletions

View file

@ -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()
}