Closed M1chlCZ closed 2 years ago
I had that too, could run the example code but not mine. I'd changed function names, exceptions. Once I changed all that back it worked. I need to go back and replicate to identify what didn't like being edited.
Colors.white24.toString() - this is the one which causes error.
The first argument of FlutterBarcodeScanner.scanBarcode()
is a String(Hex value of color with a '#' replacing '0x').
Example:
String _content = FlutterBarcodeScanner.scanBarcode('#FF4CAF50', "CANCEL", true, ScanMode.DEFAULT);
Hope it helps.
@Batflash5 Well that worked, I feel stupid. I already move on to my own solution, out of the curiosity and personal project. However yeah, sometimes reading helps.
So thank you and this is solved.
Describe the bug After I fire up the barcode scanner by example provided by the page on pub.dev I am only getting grey screen. To Reproduce Steps to reproduce the behavior:
Expected behavior To show QR scanner.
Smartphone (please complete the following information):