GlassNavBarRegistration class

What a single route contributes to the pinned navigation chrome.

Created by GlassAppBar.pinned bars and handed to the enclosing GlassNavigationShell. Consumers never construct this directly.

Annotations

Constructors

GlassNavBarRegistration({required List<GlassBarItem> actions, List<GlassBarItem> leading = const <GlassBarItem>[], required bool showsBackButton, VoidCallback? onBack, LiquidGlassSettings? buttonSettings, double? buttonSize, double? toolbarHeight, @Deprecated('A hoisted sheet item presents out of the hoisted capsule; the tap is ' 'no longer handed back.') void presentSheet(GlassBarSheetItem item)?, double? horizontalInset, bool platformViewBackdrop = false, GlassLargeTitleController? largeTitleController, double? stripRowTop})
Creates a registration describing one route's pinned bar chrome.
const

Properties

actionItems → List<GlassBarActionItem>
The tappable items in actions, with spacers removed.
no setter
actions → List<GlassBarItem>
The trailing cluster items for this route.
final
buttonSettings → LiquidGlassSettings?
Glass settings applied to this route's pinned chrome.
final
buttonSize → double?
Diameter of standalone bar buttons (including the automatic back button and GlassBarItemBackground.separate, GlassBarItemBackground.own, and GlassBarItemBackground.none items), in logical pixels.
final
hashCode → int
The hash code for this object.
no setterinherited
horizontalInset → double?
Inset from each screen edge to the pinned chrome, in logical pixels.
final
largeTitleController → GlassLargeTitleController?
The large title this route's bar collapses with, if any.
final
leading → List<GlassBarItem>
The leading cluster items for this route, excluding the back button.
final
leadingItems → List<GlassBarActionItem>
The tappable items in leading, with spacers removed.
no setter
onBack → VoidCallback?
Overrides the default back action (Navigator.maybePop).
final
platformViewBackdrop → bool
Whether the pinned chrome floats over a native platform view.
final
presentSheet → void Function(GlassBarSheetItem item)?
No longer called: a GlassBarItem.sheet presents out of the hoisted capsule itself, which the shell keeps through the presentation. See GlassNavigationShellState.holdForSheet.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showsBackButton → bool
Whether this route shows the pinned back button.
final
stripRowTop → double?
Distance from the top of the screen to the row that keeps the items staying horizontal, in iPhone Duo's vertical bar strip.
final
toolbarHeight → double?
Height of the horizontal toolbar row that the pinned chrome centres within, in logical pixels.
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