From 3909bfd66cfc53ea2d4ffcdaeab38b486065bbe1 Mon Sep 17 00:00:00 2001 From: "k.mannweiler" <2012491@stud.hs-mannheim.de> Date: Mon, 27 Feb 2023 17:01:44 +0100 Subject: [PATCH] forgot to add handlesuccess --- lib/widgets/scanner.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/widgets/scanner.dart b/lib/widgets/scanner.dart index f8e22d1..76ec40a 100644 --- a/lib/widgets/scanner.dart +++ b/lib/widgets/scanner.dart @@ -30,7 +30,7 @@ class MyScannerState extends State { }); } - void handleSucces(String group) { + void handleSucces(int group) { setState(() { scanning = false; showDialog( @@ -53,6 +53,7 @@ class MyScannerState extends State { Map json = stringToJSON(qrText); Settings settings = Settings.fromJson(json); saveSettings(settings); + handleSucces(settings.group); } } } catch (e) {