瀏覽代碼

Merge pull request #214 from Dhi13man/master

Example Code typo fix.
flutter-beta
Julian Steenbakker 5 年之前
committed by GitHub
父節點
當前提交
e2f98423ed
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      README.md

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


Loading…
取消
儲存