Skip to content
pubscout

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
$ flutter pub add focused_menu_custom
Source repository

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.