pinned property

bool pinned
final

Whether the app bar should remain visible at the start of the scroll view.

The app bar can still expand and contract as the user scrolls, but it will remain visible rather than being scrolled out of 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 pinned set to false:
  • App bar with pinned set to true:

See also:

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

Implementation

final bool pinned;