flutter_barcode_scanner icon indicating copy to clipboard operation
flutter_barcode_scanner copied to clipboard

FlutterBarcodeScanner.dismiss(); does not work

Open rodolfowf opened this issue 2 years ago • 1 comments

First, thanks for an awesome plugin.

I'd like know how I can to use FlutterBarcodeScanner.dismiss();.

For example, this code don't work. Am I missing something ?

`FlutterBarcodeScanner.getBarcodeStreamReceiver( #ff6666, Cancel, true, ScanMode.DEFAULT )?.listen((barcode) async {

var r = await saveCollectQtd(barcode, qtdInfo); // return true or false

if (r == false) {
    FlutterBarcodeScanner.dismiss(); // HERE the dismiss does not work, the code is ignored
}

});`

regards

rodolfowf avatar Mar 25 '22 02:03 rodolfowf

I do not even see this function anymore!

halmoussa avatar Jul 29 '22 22:07 halmoussa