custom_pop_up_menu
1.2.4, released 4 years ago by malikwang.com
Wrap any widget to display a customizable popup menu on tap or long press.
What it does
Allows wrapping any widget with CustomPopupMenu to trigger a popup menu via tap or long press. Automatically calculates the optimal position of the menu while also supporting manual adjustments.
AI-written summary of version 1.2.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a custom popup menu triggered by tap or long press.
- You want automatic positioning of popup menus based on available screen space.
Skip it when
- You need a standard Material popup menu that does not require custom layouts.
Strengths
- Fully customizable menu appearance
- Supports both tap and long press gestures
- Auto-calculates menu position with manual adjustment options
Weaknesses
- No preset styles provided out of the box
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
CustomPopupMenu(
menuBuilder: () => ClipRRect(
borderRadius: BorderRadius.circular(5),
child: Container(
color: Colors.white,
child: IntrinsicWidth(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: menuItems.map((item) => MenuItemWidget()).toList(),
),
),
),
),
pressType: PressType.singleClick,
child: Text('Click me'),
)Alternatives
Packages that do the same job and could replace custom_pop_up_menu.
- focused_menu
Adds a long‑press context menu to any widget.
50Compare - widget_tooltip
A customizable tooltip widget for Flutter with multiple trigger modes and smart positioning
48Compare - star_menu
Contextual popup menus with different shapes, animations, and custom widget entries.
70Compare - focused_menu_custom
Add a focused long-press or tap menu to any Flutter widget.
46Compare