GlassBarIconItem class final

An icon item in a pinned navigation-bar cluster.

Created via GlassBarItem.icon.

Inheritance

Constructors

GlassBarIconItem({required Widget icon, required VoidCallback onTap, Object? id, String? label, bool enabled = true, GlassBarItemBackground background = GlassBarItemBackground.shared, Color? tintColor, GlassBarItemAxisBehavior axisBehavior = GlassBarItemAxisBehavior.automatic})
Creates an icon item. Prefer GlassBarItem.icon.
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.
final
id → Object?
Identity used to match this item against items on other routes.
finalinherited
label → String?
Optional semantic label.
finalinherited
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