forgot to add handlesuccess
parent
d401882671
commit
3909bfd66c
|
@ -30,7 +30,7 @@ class MyScannerState extends State<MyScanner> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void handleSucces(String group) {
|
void handleSucces(int group) {
|
||||||
setState(() {
|
setState(() {
|
||||||
scanning = false;
|
scanning = false;
|
||||||
showDialog(
|
showDialog(
|
||||||
|
@ -53,6 +53,7 @@ class MyScannerState extends State<MyScanner> {
|
||||||
Map<String, dynamic> json = stringToJSON(qrText);
|
Map<String, dynamic> json = stringToJSON(qrText);
|
||||||
Settings settings = Settings.fromJson(json);
|
Settings settings = Settings.fromJson(json);
|
||||||
saveSettings(settings);
|
saveSettings(settings);
|
||||||
|
handleSucces(settings.group);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue