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
-
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
-
Glass settings applied to this route's pinned chrome.
final
-
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