From 34d5da88d7a5cdecbd2d2bf32b648c60d30aa895 Mon Sep 17 00:00:00 2001 From: Dhiman Seal Date: Sun, 10 Jan 2021 16:18:50 +0530 Subject: [PATCH 1/2] Example Code typo fix. `result` should change with each `SetState()` in `_onQRViewCreated(QRViewController controller))`, not `qrText`. `qrText` isn't defined! --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c8e9ba..b996021 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ class _QRViewExampleState extends State { this.controller = controller; controller.scannedDataStream.listen((scanData) { setState(() { - qrText = scanData; + result = scanData; }); }); } From 0b455f14736d0a00441ee976d57e845c7fa45366 Mon Sep 17 00:00:00 2001 From: Dhiman Seal Date: Sun, 10 Jan 2021 17:14:22 +0530 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b996021..837c086 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ iOS ## Get Scanned QR Code -When a QR code is recognized, the text identified will be set in 'qrText'. +When a QR code is recognized, the text identified will be set in 'result' of type `Barcode`, which contains the output text as property 'code' of type `String` and scanned code type as property 'format' which is an enum `BarcodeFormat`, defined in the library. ```dart class _QRViewExampleState extends State {