GlassButtonGroupItem.menu constructor
Creates a group item that opens a GlassMenu pull-down when tapped.
This is the Flutter equivalent of UIBarButtonItem.menu inside a
UIBarButtonItemGroup — the standard iOS 26 pattern for toolbar
buttons that reveal a list of actions.
menuItems accepts both GlassMenuItem and GlassMenuDivider widgets,
matching the GlassMenu.items contract directly.
menuAlignment controls where the menu expands relative to the trigger.
Defaults to auto-detection based on screen position.
menuWidth is the width of the expanded menu panel. Defaults to 250.
menuHeight is an optional fixed height for the expanded menu panel.
menuSettings is the glass of the menu panel. When null, the menu takes
the glass of the pill it morphs out of.
useRootOverlay renders the menu in the root Overlay instead of the
nearest one. Set it when the group lives inside a nested Navigator or a
clipped pane, so the menu can expand over outer chrome.
Implementation
const GlassButtonGroupItem.menu({
required this.icon,
required List<Widget> this.menuItems,
this.menuAlignment,
this.menuWidth = 250,
this.menuHeight,
this.menuSettings,
this.useRootOverlay = false,
this.label,
}) : onTap = _noOp,
enabled = true;