TopAppBarDefaults
Contains default values used for the top app bar implementations.
Properties
The default height of a LargeTopAppBar when collapsed by a TopAppBarScrollBehavior.
The default expanded height of a LargeTopAppBar.
The default height of a MediumTopAppBar when collapsed by a TopAppBarScrollBehavior.
The default expanded height of a MediumTopAppBar.
The default expanded height of a TopAppBar and the CenterAlignedTopAppBar.
Default insets to be used and consumed by the top app bars
Functions
Creates a TopAppBarColors for CenterAlignedTopAppBars. The default implementation animates between the provided colors according to the Material Design specification.
Returns a TopAppBarScrollBehavior. A top app bar that is set up with this TopAppBarScrollBehavior will immediately collapse when the content is pulled up, and will immediately appear when the content is pulled down.
Returns a TopAppBarScrollBehavior that adjusts its properties to affect the colors and height of the top app bar.
Creates a TopAppBarColors for LargeTopAppBars. The default implementation interpolates between the provided colors as the top app bar scrolls according to the Material Design specification.
Creates a TopAppBarColors for MediumTopAppBars. The default implementation interpolates between the provided colors as the top app bar scrolls according to the Material Design specification.
Returns a pinned TopAppBarScrollBehavior that tracks nested-scroll callbacks and updates its TopAppBarState.contentOffset accordingly.
Creates a TopAppBarColors for small TopAppBar. The default implementation animates between the provided colors according to the Material Design specification.