Make sure to leave onDetect when successful
parent
bb96aaeef9
commit
afb63adb5c
|
@ -55,7 +55,7 @@ class MyScannerState extends State<MyScanner> {
|
|||
final List<Barcode> barcodes = capture.barcodes;
|
||||
for (final barcode in barcodes) {
|
||||
if (barcode.rawValue != null) {
|
||||
handleSucces(barcode.rawValue);
|
||||
return handleSucces(barcode.rawValue);
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue