summaryrefslogtreecommitdiffstats
path: root/examples/qr_code
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/qr_code
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/qr_code')
-rw-r--r--examples/qr_code/src/main.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/qr_code/src/main.rs b/examples/qr_code/src/main.rs
index d8041745..867ebfa4 100644
--- a/examples/qr_code/src/main.rs
+++ b/examples/qr_code/src/main.rs
@@ -49,13 +49,11 @@ impl Sandbox for QRGenerator {
.size(70)
.style(Color::from([0.5, 0.5, 0.5]));
- let input = text_input(
- "Type the data of your QR code here...",
- &self.data,
- Message::DataChanged,
- )
- .size(30)
- .padding(15);
+ let input =
+ text_input("Type the data of your QR code here...", &self.data)
+ .on_input(Message::DataChanged)
+ .size(30)
+ .padding(15);
let mut content = column![title, input]
.width(700)