added popping of nav drawer when going to another page from it
This commit is contained in:
parent
37258ec2a0
commit
b08b900f31
1 changed files with 9 additions and 6 deletions
|
@ -28,22 +28,25 @@ class NavDrawer extends StatelessWidget {
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(FontAwesome5.calendar_alt),
|
leading: const Icon(FontAwesome5.calendar_alt),
|
||||||
title: const Text("Events"),
|
title: const Text("Events"),
|
||||||
onTap: () => {
|
onTap: () {
|
||||||
Navigator.pushNamed(context, PizzaEventsPage.route)
|
Navigator.pop(context);
|
||||||
|
Navigator.pushNamed(context, PizzaEventsPage.route);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(FontAwesome5.pizza_slice),
|
leading: const Icon(FontAwesome5.pizza_slice),
|
||||||
title: const Text("Recipes"),
|
title: const Text("Recipes"),
|
||||||
onTap: () => {
|
onTap: () {
|
||||||
Navigator.pushNamed(context, RecipesPage.route)
|
Navigator.pop(context);
|
||||||
|
Navigator.pushNamed(context, RecipesPage.route);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(FontAwesome5.archive),
|
leading: const Icon(FontAwesome5.archive),
|
||||||
title: const Text("Archive"),
|
title: const Text("Archive"),
|
||||||
onTap: () => {
|
onTap: () {
|
||||||
Navigator.pushNamed(context, ArchivedPizzaEventsPage.route)
|
Navigator.pop(context);
|
||||||
|
Navigator.pushNamed(context, ArchivedPizzaEventsPage.route);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue