HorizontalFloatingToolbarOverrideScope


Parameters available to HorizontalFloatingToolbar.

Summary

Public properties

Dp

the elevation for the shadow below this floating toolbar when collapsed.

Cmn
FloatingToolbarColors

the colors used for this floating toolbar.

Cmn
@Composable RowScope.() -> Unit

the main content of this FloatingToolbar.

Cmn
PaddingValues

the padding applied to the content of this FloatingToolbar.

Cmn
Dp

the elevation for the shadow below this floating toolbar when expanded.

Cmn
Boolean

whether the FloatingToolbar is in expanded mode, i.e. showing leadingContent and trailingContent.

Cmn
(@Composable RowScope.() -> Unit)?

the leading content of this FloatingToolbar.

Cmn
Modifier

the Modifier to be applied to this FloatingToolbar.

Cmn
FloatingToolbarScrollBehavior?

a FloatingToolbarScrollBehavior.

Cmn
Shape

the shape used for this FloatingToolbar.

Cmn
(@Composable RowScope.() -> Unit)?

the trailing content of this FloatingToolbar.

Cmn

Public properties

collapsedShadowElevation

val collapsedShadowElevationDp

the elevation for the shadow below this floating toolbar when collapsed.

colors

val colorsFloatingToolbarColors

the colors used for this floating toolbar. There are two predefined FloatingToolbarColors at FloatingToolbarDefaults.standardFloatingToolbarColors and FloatingToolbarDefaults.vibrantFloatingToolbarColors which you can use or modify.

content

val content: @Composable RowScope.() -> Unit

the main content of this FloatingToolbar. The default layout here is a Row, so content inside will be placed horizontally.

contentPadding

val contentPaddingPaddingValues

the padding applied to the content of this FloatingToolbar.

expandedShadowElevation

val expandedShadowElevationDp

the elevation for the shadow below this floating toolbar when expanded.

isExpanded

val isExpandedBoolean

whether the FloatingToolbar is in expanded mode, i.e. showing leadingContent and trailingContent. Note that the toolbar will stay expanded in case a touch exploration service (e.g., TalkBack) is active.

leadingContent

val leadingContent: (@Composable RowScope.() -> Unit)?

the leading content of this FloatingToolbar. The default layout here is a Row, so content inside will be placed horizontally. Only showing if isExpanded is true.

modifier

val modifierModifier

the Modifier to be applied to this FloatingToolbar.

scrollBehavior

val scrollBehaviorFloatingToolbarScrollBehavior?

a FloatingToolbarScrollBehavior. If null, this FloatingToolbar will not automatically react to scrolling. Note that the toolbar will not react to scrolling in case a touch exploration service (e.g., TalkBack) is active.

shape

val shapeShape

the shape used for this FloatingToolbar.

trailingContent

val trailingContent: (@Composable RowScope.() -> Unit)?

the trailing content of this FloatingToolbar. The default layout here is a Row, so content inside will be placed horizontally. Only showing if isExpanded is true.