GlassBarMenuItem class final

A pull-down menu item in a pinned navigation-bar cluster.

Created via GlassBarItem.menu.

Inheritance

Constructors

GlassBarMenuItem({required Widget icon, required List<Widget> menuItems, GlassMenuAlignment? menuAlignment, double menuWidth = 200, double? menuHeight, Object? id, String? label, GlassBarItemBackground background = GlassBarItemBackground.shared, Color? tintColor, GlassBarItemAxisBehavior axisBehavior = GlassBarItemAxisBehavior.automatic})
Creates a menu item. Prefer GlassBarItem.menu.
const

Properties

axisBehavior → GlassBarItemAxisBehavior
Whether this item moves into iPhone Duo's vertical bar strip.
finalinherited
background → GlassBarItemBackground
How this item's glass background is drawn.
finalinherited
content → Widget
The widget rendered inside the cluster.
no setteroverride
enabled → bool
Whether the item responds to taps. Disabled items render dimmed.
finalinherited
goesVertical → bool
Whether this item goes into the vertical strip where there is one.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasTap → bool
Whether this item has an active tap action of its own.
no setterinherited
icon → Widget
The icon widget, typically an Icon. Conventionally an ellipsis.
final
id → Object?
Identity used to match this item against items on other routes.
finalinherited
label → String?
Optional semantic label.
finalinherited
Where the menu expands relative to the capsule.
final
Optional fixed height for the menu panel, in logical pixels.
final
The menu's contents: GlassMenuItem and GlassMenuDivider widgets.
final
Width of the expanded menu panel, in logical pixels.
final
onTap → VoidCallback
Called when the item is tapped.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tintColor → Color?
Tints the entire glass capsule with this colour, matching iOS 26's .tint() modifier on a prominent bar button.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited