Skip to content
pubscout

star_menu

4.0.2, released 4 months ago by marcobavagnoli.com

Contextual popup menus with different shapes, animations, and custom widget entries.

WASM-ready
$ flutter pub add star_menu
Source repository

What it does

Attaches a customizable popup menu to any widget, supporting linear, circle, and grid layouts. It allows fine-tuning of animations, positions, and boundary checks, with menu entries that can be almost any widget.

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

Use it when

  • You need contextual popup menus with custom shapes like circles or grids.
  • You want flexible entry animations and positioning for popup options.

Skip it when

  • You just need a standard Material popup menu without custom shapes or advanced animations.

Strengths

  • Supports multiple layout shapes (linear, circle, grid)
  • Highly customizable animations, durations, and boundaries
  • Can build items lazily at runtime

Weaknesses

  • API might be complex for very simple contextual menu use cases

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

none

StarMenu(
  params: StarMenuParameters(),
  items: entries,
  child: FloatingActionButton(
    onPressed: () {},
    child: Icon(Icons.looks_one),
  ),
)

Alternatives

Packages that do the same job and could replace star_menu.

Works with

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