pinned property
Whether the appbar will be fixed at the top of the scroll view
meaning it will always be visible to the user as they scroll through the content.
Although the appbar can still change in size as the user scrolls, it will not be scrolled out of view like other elements in the scroll view.
Animated Examples
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:
See also:
- SliverAppBar for more animated examples of how this property changes the
Implementation
final bool pinned;