added onerror catch for when something goes wrong with parsing the yaml files

This commit is contained in:
broodjeaap89 2021-07-10 21:44:39 +02:00
parent 20e2f8e696
commit 6d9352485b

View file

@ -33,6 +33,10 @@ class AddPizzaEventPageState extends State<AddPizzaEventPage> {
this.pizzaTypes = pTypes;
this.pizzaRecipe = this.pizzaTypes.first;
setState(() {this.initialized = true;});
}, onError: (e, stacktrace) {
print(e);
print(stacktrace);
Navigator.pop(context);
});
}