diff --git a/lib/widgets/scanner.dart b/lib/widgets/scanner.dart index 0f65b74..a8b1b2b 100644 --- a/lib/widgets/scanner.dart +++ b/lib/widgets/scanner.dart @@ -55,7 +55,7 @@ class MyScannerState extends State { final List barcodes = capture.barcodes; for (final barcode in barcodes) { if (barcode.rawValue != null) { - handleSucces(barcode.rawValue); + return handleSucces(barcode.rawValue); } } } finally {