added onerror catch for when something goes wrong with parsing the yaml files
This commit is contained in:
parent
20e2f8e696
commit
6d9352485b
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ class AddPizzaEventPageState extends State<AddPizzaEventPage> {
|
||||||
this.pizzaTypes = pTypes;
|
this.pizzaTypes = pTypes;
|
||||||
this.pizzaRecipe = this.pizzaTypes.first;
|
this.pizzaRecipe = this.pizzaTypes.first;
|
||||||
setState(() {this.initialized = true;});
|
setState(() {this.initialized = true;});
|
||||||
|
}, onError: (e, stacktrace) {
|
||||||
|
print(e);
|
||||||
|
print(stacktrace);
|
||||||
|
Navigator.pop(context);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue