GlassPinnedBarChromeData class
The bar chrome to render this frame, handed to a GlassPinnedBarChrome.builder.
Drop leading and actions straight into your bar's slots. They already hold the right thing for the current state: the real glass buttons while the bar still owns its chrome, and same-sized unpainted placeholders once the shell has taken it. Reading hoisted, presenting and inStrip is only necessary to draw something other than the package's own chrome.
- Annotations
Constructors
-
GlassPinnedBarChromeData({required Widget? leading, required List<
Widget> actions, required bool hoisted, GlassBarSheetItem? presenting, bool inStrip = false}) -
Creates the chrome for one frame.
const
Properties
-
actions
→ List<
Widget> -
The trailing slot: the actions capsule, its placeholder, or empty where
the route declares no actions.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoisted → bool
-
Whether the shell has taken this route's chrome.
final
- inStrip → bool
-
Whether the chrome is laid out for iPhone Duo's vertical bar strip
(GlassVerticalBar.maybeOf).
final
- leading → Widget?
-
The leading slot: the automatic back button, the declared leading items,
their placeholders, or null where the route has neither.
final
- presenting → GlassBarSheetItem?
-
The GlassBarItem.sheet whose sheet is up out of the hoisted chrome, or
null.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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