summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-12 14:22:17 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-12 14:22:17 +0700
commitdee3dba632709f57b5573dbe28827ad481287648 (patch)
tree727a95d02c25a3d09b99aeb70e6022270fd3f7e5 /examples
parent182fb9446c577a6be988052a5103010e1a79addd (diff)
downloadiced-dee3dba632709f57b5573dbe28827ad481287648.tar.gz
iced-dee3dba632709f57b5573dbe28827ad481287648.tar.bz2
iced-dee3dba632709f57b5573dbe28827ad481287648.zip
Reuse `Text` widget from `iced_native` in `iced_pure`
Diffstat (limited to 'examples')
-rw-r--r--examples/pure/counter/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pure/counter/src/main.rs b/examples/pure/counter/src/main.rs
index 4cb79a0e..9b520347 100644
--- a/examples/pure/counter/src/main.rs
+++ b/examples/pure/counter/src/main.rs
@@ -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()
}