floating property Null safety
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.
The following animations show how the app bar changes its scrolling behavior based on the value of this property.
- App bar with floating set to false:
- App bar with floating set to true:
- 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;