SingleRowTopAppBarOverrideScope


Parameters available to SingleRowTopAppBar.

Summary

Public properties

@Composable RowScope.() -> Unit

the actions displayed at the end of the top app bar.

Cmn
TopAppBarColors

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

Cmn
Dp

this app bar's height.

Cmn
Modifier

the Modifier to be applied to this top app bar

Cmn
@Composable () -> Unit

the navigation icon displayed at the start of the top app bar.

Cmn
TopAppBarScrollBehavior?

a TopAppBarScrollBehavior which holds various offset values that will be applied by this top app bar to set up its height and colors.

Cmn
(@Composable () -> Unit)?

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

Cmn
TextStyle

the subtitle's text style

Cmn
@Composable () -> Unit

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

Cmn
Alignment.Horizontal

the title's horizontal alignment

Cmn
TextStyle

the title's text style

Cmn
WindowInsets

a window insets that app bar will respect.

Cmn

Public properties

actions

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.

colors

val colorsTopAppBarColors

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

expandedHeight

val expandedHeightDp

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.

modifier

val modifierModifier

the Modifier to be applied to this top app bar

val navigationIcon: @Composable () -> Unit

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

scrollBehavior

val scrollBehaviorTopAppBarScrollBehavior?

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.

subtitle

val subtitle: (@Composable () -> Unit)?

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

subtitleTextStyle

val subtitleTextStyleTextStyle

the subtitle's text style

title

val title: @Composable () -> Unit

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

titleHorizontalAlignment

val titleHorizontalAlignmentAlignment.Horizontal

the title's horizontal alignment

titleTextStyle

val titleTextStyleTextStyle

the title's text style

windowInsets

val windowInsetsWindowInsets

a window insets that app bar will respect.