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(() {
|
||||
scanning = false;
|
||||
showDialog(
|
||||
|
@ -53,6 +53,7 @@ class MyScannerState extends State<MyScanner> {
|
|||
Map<String, dynamic> json = stringToJSON(qrText);
|
||||
Settings settings = Settings.fromJson(json);
|
||||
saveSettings(settings);
|
||||
handleSucces(settings.group);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue