Skip to content
pubscout

menu_bar

1.0.0, released 4 weeks ago by iakdis.com

A customizable application menu bar widget with submenus for Flutter desktop apps.

WASM-readyUses material_ui
$ flutter pub add menu_bar
Source repository

What it does

Provides a menu bar widget for Flutter desktop applications that supports nested submenus, dividers, icons, keyboard shortcuts, and full customization via standard Flutter styles.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Flutter desktop application and need a traditional application menu bar.
  • You want customizable menus with shortcuts, icons, and submenus rendered inside the app.

Skip it when

  • You need native operating system menu bars (the package currently renders inside the Flutter app).
  • You are building a mobile-only application.

Strengths

  • Supports nested submenus, dividers, and icons.
  • Keyboard shortcuts and shortcut text support.
  • Fully customizable using standard Flutter MenuStyle and ButtonStyle classes.

Weaknesses

  • Rendered inside the Flutter app rather than as a native desktop menu bar.
  • Limited to desktop-oriented menu paradigms.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
MenuBarWidget(
    barButtons: [
        BarButton(
            text: const Text('File', style: TextStyle(color: Colors.white)),
            submenu: SubMenu(
                menuItems: [
                    MenuButton(
                        text: const Text('Save'),
                        onTap: () {},
                        icon: const Icon(Icons.save),
                        shortcutText: 'Ctrl+S',
                    ),
                ],
            ),
        ),
    ],
    child: Scaffold(),
)

Alternatives

Packages that do the same job and could replace menu_bar.

Works with

Packages commonly used together with menu_bar: ones it builds on, ones built on it, and its own family.