GlassBarSheetItem class final
A sheet-presenting item in a pinned navigation-bar cluster.
Created via GlassBarItem.sheet.
- Inheritance
-
- Object
- GlassBarItem
- GlassBarActionItem
- GlassBarSheetItem
Constructors
- GlassBarSheetItem({required Widget icon, required void onPresent(GlassMorphAnchor? anchor), Object? id, String? label, bool enabled = true, GlassBarItemBackground background = GlassBarItemBackground.shared, Color? tintColor, GlassBarItemAxisBehavior axisBehavior = GlassBarItemAxisBehavior.automatic})
-
Creates a sheet item. Prefer GlassBarItem.sheet.
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
- onPresent → void Function(GlassMorphAnchor? anchor)
-
Called on tap with the anchor of the capsule this item sits in.
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