소스 검색
Example Code typo fix.
`result` should change with each `SetState()` in `_onQRViewCreated(QRViewController controller))`, not `qrText`. `qrText` isn't defined!
flutter-beta
Dhiman Seal
5 년 전
committed by
GitHub
No known key found for this signature in database
GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일과
1개의 추가작업 그리고
1개의 파일을 삭제
-
README.md
|
|
|
@@ -119,7 +119,7 @@ class _QRViewExampleState extends State<QRViewExample> { |
|
|
|
this.controller = controller; |
|
|
|
controller.scannedDataStream.listen((scanData) { |
|
|
|
setState(() { |
|
|
|
qrText = scanData; |
|
|
|
result = scanData; |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|