floating property

bool floating

Whether the app bar should become visible as soon as the user scrolls towards the app bar.

Otherwise, the user will need to scroll near the top of the scroll view to reveal the app bar.

If snap is true then a scroll that exposes the app bar will trigger an animation that slides the entire app bar into view. Similarly if a scroll dismisses the app bar, the animation will slide it completely out of view.

Animated Examples

The following animations show how the app bar changes its scrolling behavior based on the value of this property.

See also:

  • SliverAppBar for more animated examples of how this property changes the behavior of the app bar in combination with pinned and snap.


final bool floating;