Bläddra i källkod

Merge pull request #214 from Dhi13man/master

Example Code typo fix.
flutter-beta
Julian Steenbakker 5 år sedan
committed by GitHub
förälder
incheckning
e2f98423ed
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. +2
    -2
      README.md

+ 2
- 2
README.md Visa fil

@@ -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<QRViewExample> {
@@ -119,7 +119,7 @@ class _QRViewExampleState extends State<QRViewExample> {
this.controller = controller;
controller.scannedDataStream.listen((scanData) {
setState(() {
qrText = scanData;
result = scanData;
});
});
}


Laddar…
Avbryt
Spara