I'm using the barcode_scan package to get barcode information.
barcode_scan: ^3.0.1
I have a super simple test scenario set up like this:
ScanResult result = await BarcodeScanner.scan();
print(result.rawContent);
I see the barcode scanner screen show up, and it appears to detect the barcode because as soon as I focus on the barcode it pauses and the closes the barcode scanner screen. however, it never reaches the line below print(result.rawContent); I'm not seeing any errors either. I've tried wrapping the whole thing in a try catch just to see, but it never entered the catch. It's like it just doesn't return anything from the await BarcodeScanner.scan() call and just aborts completely.
I'm not sure what I'm doing wrong here.