Geometry and timing constants for the pinned chrome.
Grouped here so the choreography can be tuned in one place.
The geometry members are exported so a bar that is not a GlassAppBar can draw its in-route chrome to the same numbers; without that, the chrome resizes at the moment the shell takes it over. The timing members (crossFadeStart, crossFadeEnd, swapAt, capsuleStretch) and the helpers that read them describe the shell's own choreography and may be retuned — align to the geometry, not to these.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
clusterPhaseAt(
{required bool inFrom, required bool inTo, required double progress}) → double -
The materialize phase of a cluster at transition
progress: 0.0 = fully dematerialized (not built), 1.0 = settled glass. -
incomingSigmaAt(
double morphT) → double -
Blur of an incoming glyph at
morphTthrough the morph window. -
morphProgressAt(
double progress) → double -
Progress through the morphStart..morphEnd window at route
progress. -
outgoingSigmaAt(
double morphT) → double -
Blur of an outgoing glyph at
morphTthrough the morph window. -
showsIncomingAt(
double progress) → bool -
Which side's configuration is showing at transition
progress. -
swellPulseAt(
double morphT) → double -
The gel swell at
morphTthrough the morph window.
Constants
- backDiameter → const double
- Diameter of the circular back button.
- Stretch factor of a shell that shares with nothing, matching the GlassButton default a lone circular button has always used.
- capsuleRadius → const double
-
Corner radius of the actions capsule, matching
GlassButtonGroup.icons. - capsuleStretch → const double
-
Stretch factor of the capsule shell, matching
GlassButtonGroup.icons. - crossFadeEnd → const double
- End of the icon cross-fade window.
- crossFadeStart → const double
- Window during which a matched item's icon cross-fades, as a fraction of the morphStart..morphEnd morph window.
- dematerializeEnd → const double
- End of the window over which a disappearing cluster dematerializes, in route progress. The window starts at 0.0.
- glyphArriveSigma → const double
- Blur at which an incoming glyph arrives.
- glyphSharpenEnd → const double
- End of the incoming glyph's sharpening window.
- glyphSharpenStart → const double
- Window over which an incoming glyph sharpens, as a fraction of the morphStart..morphEnd morph window like crossFadeStart.
- groupGap → const double
- Gap between two shells within one cluster.
- horizontalPadding → const double
- Horizontal inset, matching GlassAppBar.padding.
- iconSize → const double
- Icon size inside both clusters.
- materializeScaleFrom → const double
- Scale a cluster swells to while dematerialized, from the native capture. Gentler than the standalone default: the bar's clusters are anchored to an edge, where a deep scale reads as a slide.
- materializeStart → const double
- Start of the window over which an appearing cluster materializes, in route progress. The window ends at 1.0.
- morphBlurSigma → const double
- Peak gaussian blur applied to a glyph on its way out.
- morphEnd → const double
- End of the cluster morph, as a fraction of the route transition.
- morphStart → const double
- Start of the cluster morph, as a fraction of the route transition.
- slot → const double
- Width and height of one icon slot inside the actions capsule.
- squeezeScale → const double
- How much of the spring's overshoot squeezes the whole shell.
- swapAt → const double
- Point in the transition at which the chrome switches from showing the outgoing route's configuration to the incoming one.
- swellAmount → const double
- Peak of the gel swell, as a fraction of the shell's size.
- swellWindow → const double
- Portion of the morph over which the swell rises and falls.
- toolbarHeight → const double
- Height of the toolbar row, matching GlassAppBar.toolbarHeight.