added simple debug helper on the add pizza page to spawn the notification page
This commit is contained in:
parent
375a6feb07
commit
44d1af167a
1 changed files with 7 additions and 0 deletions
|
@ -40,6 +40,13 @@ class PizzaEventsState extends State<PizzaEventsPage> {
|
|||
),
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed: () async {
|
||||
var pizzaEventBox = Hive.box<PizzaEvent>("PizzaEvents");
|
||||
if (pizzaEventBox.isNotEmpty){
|
||||
var firstKey = pizzaEventBox.keys.first;
|
||||
Navigator.pushNamed(context, "/event/notification", arguments: "${firstKey}__0");
|
||||
return;
|
||||
}
|
||||
|
||||
final dynamic newPizzaEvent = await Navigator.pushNamed(
|
||||
context,
|
||||
"/event/pick_recipe",
|
||||
|
|
Loading…
Add table
Reference in a new issue