Closed lwky closed 4 years ago
I can confirm this happens for me as well for Android device
See the upgrade guide: https://github.com/mintware-de/flutter_barcode_reader/blob/master/UPGRADE.md
You need to update your project to Flutter 1.12+. (Not only the Flutter tools itself)
I'm using Flutter 1.12.13+hotfix.9 and can still reproduce the issue.
Please see the upgrade guide. As written, you also need to update the Project itself to Flutter 1.12+
I'm using Flutter 1.12.13+hotfix.9 and can still reproduce the issue.
I think @devtronic is referring to this line:
If you flutter created your project prior to version 1.12, this may apply to your project
I created my project half a year ago so this applies to me as well. Thanks 👍
I solved downgrading barcode_scan
from 3.0.1
(current version) to 2.0.0
.
I hope it helps
What was really necessary is to go through this process https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects, which was referenced from the barcode scanner upgrade guide.
Describe the bug BarcodeScanner.scan() never returns. The scanner opens, it successfully scans a barcode, the viewfinder is hidden again, but the ScanResult future never completes.
Environment flutter stable 1.12.13+hotfix.9 debugmode android 6.0 works fine running barcode_scan 2.0.2
Additional context BarcodeScannerActivity::handleResult() calls finish() with the expected barcode
ActivityHelper::onActivityResult() does not get called ScanResultHandler::onActivityResult() does not get called
I have no kotlin experience but I can always test some more stuff if someone points me in the right direction :)