Open JamesBewley opened 4 years ago
The following exception is being thrown in the onCreate method but isn't being handled
E/BCActivity:onCreate(): onCreate: Binary XML file line #15: Binary XML file line #15: Error inflating class com.amolg.flutterbarcodescanner.camera.GraphicOverlay
Giving up and using the barcode_scan wrapper
For anyone else that faced the same issue, the problem is because of an invalid string in the HEX COLOR property of scanBarcode()
function.
To rectify it, try this code given in the example:
barcodeScanRes = await FlutterBarcodeScanner.scanBarcode( '#ff6666', 'Cancel', true, ScanMode.BARCODE);
@RangerOfGondor I was having the same problem. I used your tip and it worked correctly. Thank you.
Please check with the latest V 2.0.0 if the issue still persists?
For anyone else that faced the same issue, the problem is because of an invalid string in the HEX COLOR property of
scanBarcode()
function.To rectify it, try this code given in the example:
barcodeScanRes = await FlutterBarcodeScanner.scanBarcode( '#ff6666', 'Cancel', true, ScanMode.BARCODE);
That was solved my problem. Thanks
Describe the bug Once the barcode scanner is launched only a black screen is displayed. Pressing anywhere on the black screen results in a null pointer exception and the app crashes.
To Reproduce Steps to reproduce the behavior:
Expected behavior Barcode scanning screen and no crash.
Smartphone (please complete the following information):