Skip to content

Commit

Permalink
pop menu
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Jul 9, 2024
1 parent b33e562 commit 4c2eaa7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ui/mobile/buttons/menu_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class _MenuButtonState extends State<MenuButton> {
title: const Text('App Settings'),
onTap: () {
options.clear();
Navigator.pop(context); // Close the menu
Navigator.pushNamed(
context,
'/settings'
Expand All @@ -149,6 +150,7 @@ class _MenuButtonState extends State<MenuButton> {
contentPadding: const EdgeInsets.symmetric(horizontal: 8.0),
title: const Text('About'),
onTap: () {
Navigator.pop(context); // Close the menu
Navigator.pushNamed(context, '/about');
},
),
Expand Down

0 comments on commit 4c2eaa7

Please sign in to comment.