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(
|
floatingActionButton: FloatingActionButton(
|
||||||
onPressed: () async {
|
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(
|
final dynamic newPizzaEvent = await Navigator.pushNamed(
|
||||||
context,
|
context,
|
||||||
"/event/pick_recipe",
|
"/event/pick_recipe",
|
||||||
|
|
Loading…
Add table
Reference in a new issue