mintware-de / flutter_barcode_reader

A flutter plugin for reading 2D barcodes and QR codes.
MIT License
628 stars 464 forks source link

[Bug] #256

Closed qiqetes closed 4 years ago

qiqetes commented 4 years ago

BUG REPORTS WITHOUT PROVIDING THESE INFORMATIONS WILL BE CLOSED DIRECTLY. DON'T REMOVE THE SECTIONS!

Describe the bug scan() doesn't end in 3.0.1 but it does in other versions

To Reproduce

Future scanQR() async {
    try{
      // run
      var codeScanner = await BarcodeScanner.scan();
      // doesn't run 
      print(codeScanner.rawContent);
      _showDialog(context, codeScanner.rawContent);
    }catch(e){
      // doesn't run
      print(e);
    }
  }

Expected behavior It should print or do the stuff after the scan()

Screenshots

Logs If applicable, add the verbose output of flutter run.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

sergioramoshc commented 4 years ago

+1

Which version have you tested and worked?

qiqetes commented 4 years ago

+1

Which version have you tested and worked?

I'm currently using 2.0.0, and it works as intended

devtronic commented 4 years ago

https://github.com/mintware-de/flutter_barcode_reader/blob/master/UPGRADE.md#upgrade-from-2x-to-300