The Scaffold's appbar is the toolbar, bottom, and the "flexible space" that's stacked behind them. The Scaffold's appBarBehavior defines how its layout responds to scrolling the application's body.
Constants
- anchor → AppBarBehavior
-
The app bar's layout does not respond to scrolling.
const AppBarBehavior(0)
- scroll → AppBarBehavior
-
The app bar's appearance and layout depend on the scrollOffset of the Scrollable identified by the Scaffold's scrollableKey. With the scrollOffset at 0.0, scrolling downwards causes the toolbar's flexible space to shrink, and then the app bar fades out and scrolls off the top of the screen. Scrolling upwards always causes the app bar's bottom widget to reappear if the bottom widget isn't null, otherwise the app bar's toolbar reappears.
const AppBarBehavior(1)
- under → AppBarBehavior
-
The app bar's appearance and layout depend on the scrollOffset of the Scrollable identified by the Scaffold's scrollableKey. With the scrollOffset at 0.0, Scrolling downwards causes the toolbar's flexible space to shrink. If the bottom widget isn't null the app bar shrinks to the bottom widget's AppBarBottomWidget.bottomHeight, otherwise the app bar shrinks to its AppBar.collapsedHeight.
const AppBarBehavior(2)
- values → List<AppBarBehavior>
-
A constant List of the values in this enum, in order of their declaration.
const List<AppBarBehavior>
Properties
- index → int
-
read-only
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited