focused_menu_custom
1.2.0, released 4 years ago by an unverified publisher
Add a focused long-press or tap menu to any Flutter widget.
WASM-ready
What it does
Allows developers to wrap any widget with a focused menu holder that pops up a customized overlay menu on long press or tap. It supports customizable menu items, backgrounds, offsets, and animations.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to display a context menu when a user long-presses or taps a grid item or card.
- You need custom animations and styling for popup menus.
Skip it when
- You need native context menus specifically tailored to each platform's design guidelines.
- You are not using Flutter.
Strengths
- Easy to implement by wrapping target widgets with FocusedMenuHolder.
- Highly customizable including blur size, offsets, menu width, and item extent.
- Supports opening with either long press or a simple tap.
Weaknesses
- Limited to popup menus triggered by touch or click interactions.
- Not documented for complex accessibility features beyond basic widgets.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
FocusedMenuHolder(
menuWidth: MediaQuery.of(context).size.width * 0.50,
blurSize: 5.0,
menuItemExtent: 45,
menuItems: <FocusedMenuItem>[
FocusedMenuItem(title: Text("Open"), trailingIcon: Icon(Icons.open_in_new), onPressed: () {}),
],
onPressed: () {},
child: Card(child: Text("Hold me")),
)Alternatives
Packages that do the same job and could replace focused_menu_custom.
- focused_menu
Adds a long‑press context menu to any widget.
50Compare - app_badge_plus
Flutter plugin to set numeric badges on app icons for iOS, Android, and macOS
84Compare - flutter_in_app_pip
Provides in-app Picture-in-Picture support with customizable widget
54Compare - custom_pop_up_menu
Wrap any widget to display a customizable popup menu on tap or long press.
50Compare