Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
ux(MenuBar): Add editing and settings page button
Browse files Browse the repository at this point in the history
  • Loading branch information
iakdis committed Apr 29, 2023
1 parent 98cdd7d commit 3b50c99
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/src/widgets/menu_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,17 @@ List<BarButton> getMenuBarMenus({
text: barButtonText(Localization.appLocalizations().edit),
submenu: SubMenu(
menuItems: [
MenuButton(
onTap: () => context.read<NavigationProvider>().setEditingPage(),
icon: const Icon(Icons.edit),
text: menuButtonText(Localization.appLocalizations().editingPage),
),
MenuButton(
onTap: () => context.read<NavigationProvider>().setSettingsPage(),
icon: const Icon(Icons.settings),
text: menuButtonText(Localization.appLocalizations().settings),
),
const MenuDivider(),
MenuButton(
onTap: () => refreshFiles(context: context),
icon: const Icon(Icons.refresh),
Expand Down

0 comments on commit 3b50c99

Please sign in to comment.