ExpressiveAppBarScroll class

Where a top bar stands against the content under it — Compose's TopAppBarState offsets, as a value: heightOffset (0 at rest, down to minus the bar's collapse range) and contentOffset (0 at rest, negative as content scrolls under the bar).

ExpressiveScaffold publishes one around its bar (ExpressiveAppBarScrollScope) from its scrollable; a bar outside a screen stands at rest unless given one (a still of a bar mid-collapse).

ExpressiveAppBar(title: 'Trips', large: true, scroll: ExpressiveAppBarScroll(heightOffset: -28))
Annotations

Constructors

ExpressiveAppBarScroll({double heightOffset = 0, double contentOffset = 0, bool overlay = false})
A top bar scroll state of heightOffset, contentOffset and overlay.
const

Properties

contentOffset → double
How far content has scrolled under the bar, in dp: 0 at rest, negative scrolled.
final
hashCode → int
The hash code for this object.
no setteroverride
heightOffset → double
How far the bar has collapsed, in dp: 0 expanded, negative collapsing.
final
overlay → bool
Whether the bar stands over a full-bleed body (a hero under the status bar): transparent at rest, it fills once content passes under it.
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
overlappedFraction(double rowHeight) → double
Compose's overlappedFraction for a bar whose row is rowHeight tall: how much of it the scrolled content has passed under, 0 to 1.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

rest → const ExpressiveAppBarScroll
At rest.