SingleRowTopAppBarOverrideScope

Properties

Link copied to clipboard
val actions: @Composable RowScope.() -> Unit

the actions displayed at the end of the top app bar. This should typically be IconButtons. The default layout here is a Row, so icons inside will be placed horizontally.

Link copied to clipboard

TopAppBarColors that will be used to resolve the colors used for this top app bar in different states. See TopAppBarDefaults.topAppBarColors.

Link copied to clipboard
val contentPadding: PaddingValues
Link copied to clipboard

this app bar's height. When a specified scrollBehavior causes the app bar to collapse or expand, this value will represent the maximum height that the bar will be allowed to expand. This value must be specified and finite, otherwise it will be ignored and replaced with TopAppBarDefaults.TopAppBarExpandedHeight.

Link copied to clipboard
val modifier: Modifier

the Modifier to be applied to this top app bar

Link copied to clipboard
val navigationIcon: @Composable () -> Unit

the navigation icon displayed at the start of the top app bar. This should typically be an IconButton or IconToggleButton.

Link copied to clipboard

a TopAppBarScrollBehavior which holds various offset values that will be applied by this top app bar to set up its height and colors. A scroll behavior is designed to work in conjunction with a scrolled content to change the top app bar appearance as the content scrolls. See TopAppBarScrollBehavior.nestedScrollConnection.

Link copied to clipboard
val subtitle: @Composable () -> Unit?

a lambda for providing an optional subtitle to be displayed in the top app bar in collapsed and expanded states.

Link copied to clipboard
val subtitleTextStyle: TextStyle

the subtitle's text style

Link copied to clipboard
val title: @Composable () -> Unit

the title to be displayed in the top app bar typically be an IconButton or IconToggleButton.

Link copied to clipboard
val titleHorizontalAlignment: Alignment.Horizontal

the title's horizontal alignment

Link copied to clipboard
val titleTextStyle: TextStyle

the title's text style

Link copied to clipboard
val windowInsets: WindowInsets

a window insets that app bar will respect.

Functions

Link copied to clipboard

Behavior function that is called by the SingleRowTopAppBar component.