summaryrefslogtreecommitdiffstats
path: root/examples/toast
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-17 23:46:18 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-17 23:46:18 +0200
commit619ba9294d5e0f7913f82838d78018fc6714d26a (patch)
treeb0631aa66875e0e9f486665227c306832ac19a5b /examples/toast
parentd206b82ebb7617337cd378bd19542a7abf8a4529 (diff)
parente3730106e9d4f75de199e1b83cf285b8ff031968 (diff)
downloadiced-619ba9294d5e0f7913f82838d78018fc6714d26a.tar.gz
iced-619ba9294d5e0f7913f82838d78018fc6714d26a.tar.bz2
iced-619ba9294d5e0f7913f82838d78018fc6714d26a.zip
Merge branch 'advanced-text' into incremental-rendering
Diffstat (limited to 'examples/toast')
-rw-r--r--examples/toast/src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/toast/src/main.rs b/examples/toast/src/main.rs
index 78fb9de1..9d859258 100644
--- a/examples/toast/src/main.rs
+++ b/examples/toast/src/main.rs
@@ -119,13 +119,15 @@ impl Application for App {
column![
subtitle(
"Title",
- text_input("", &self.editing.title, Message::Title)
+ text_input("", &self.editing.title)
+ .on_input(Message::Title)
.on_submit(Message::Add)
.into()
),
subtitle(
"Message",
- text_input("", &self.editing.body, Message::Body)
+ text_input("", &self.editing.body)
+ .on_input(Message::Body)
.on_submit(Message::Add)
.into()
),