Przeglądaj źródła

Merge pull request #214 from Dhi13man/master

Example Code typo fix.
flutter-beta
Julian Steenbakker 5 lat temu
committed by GitHub
rodzic
commit
e2f98423ed
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      README.md

+ 2
- 2
README.md Wyświetl plik

@@ -59,7 +59,7 @@ iOS


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


Ładowanie…
Anuluj
Zapisz