GlassBarTextItem class final

A text item in a pinned navigation-bar cluster.

Created via GlassBarItem.text.

Inheritance

Constructors

GlassBarTextItem({required String title, required VoidCallback onTap, Object? id, String? label, bool enabled = true, GlassBarItemBackground? background, GlassBarItemStyle style = GlassBarItemStyle.plain, Color? tintColor, TextStyle? textStyle, GlassBarItemAxisBehavior axisBehavior = GlassBarItemAxisBehavior.automatic})
Creates a text item. Prefer GlassBarItem.text.
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
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
style → GlassBarItemStyle
Visual prominence of this item.
finalinherited
textStyle → TextStyle?
Optional style merged onto the bar's default typography.
final
tintColor → Color?
Tints the entire glass capsule with this colour, matching iOS 26's .tint() modifier on a bar button.
finalinherited
title → String
The visible label displayed inside the bar capsule.
final

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