Make sure to leave onDetect when successful

main
Kai Mannweiler 2023-02-27 20:34:14 +01:00
parent bb96aaeef9
commit afb63adb5c
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class MyScannerState extends State<MyScanner> {
final List<Barcode> barcodes = capture.barcodes; final List<Barcode> barcodes = capture.barcodes;
for (final barcode in barcodes) { for (final barcode in barcodes) {
if (barcode.rawValue != null) { if (barcode.rawValue != null) {
handleSucces(barcode.rawValue); return handleSucces(barcode.rawValue);
} }
} }
} finally { } finally {