menu_bar
1.0.0, released 4 weeks ago by iakdis.com
A customizable application menu bar widget with submenus for Flutter desktop apps.
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.
- adaptive_navbar
A responsive Flutter navigation bar that switches between a full bar and a drawer based on screen size.
82Compare - pluto_menu_bar
A horizontal menu bar widget for Flutter supporting nested submenus, checkboxes, and radio items.
50Compare - sliver_app_bar_builder
Customizable sliver app bar using builder callbacks.
74Compare - flutter_icon_snackbar
Animated snack bar with icon, color, text, and programmatic dismissal
67Compare
Works with
Packages commonly used together with menu_bar: ones it builds on, ones built on it, and its own family.