From afb63adb5c4e58727a78302bbdde1e03bff952be Mon Sep 17 00:00:00 2001 From: "k.mannweiler" <2012491@stud.hs-mannheim.de> Date: Mon, 27 Feb 2023 20:34:14 +0100 Subject: [PATCH] Make sure to leave onDetect when successful --- lib/widgets/scanner.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {