VerticalFloatingToolbarOverrideScope

Class

Common
@ExperimentalMaterial3ComponentOverrideApi
class VerticalFloatingToolbarOverrideScope
internal constructor(
    val isExpanded: Boolean,
    val modifier: Modifier = Modifier,
    val colors: FloatingToolbarColors,
    val contentPadding: PaddingValues,
    val scrollBehavior: FloatingToolbarScrollBehavior?,
    val shape: Shape,
    val leadingContent: @Composable (ColumnScope.() -> Unit)?,
    val trailingContent: @Composable (ColumnScope.() -> Unit)?,
    val expandedShadowElevation: Dp,
    val collapsedShadowElevation: Dp,
    val content: @Composable ColumnScope.() -> Unit,
)

Parameters available to VerticalFloatingToolbar.

Parameters

isExpandedwhether 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.
modifierthe Modifier to be applied to this FloatingToolbar.
colorsthe colors used for this floating toolbar. There are two predefined FloatingToolbarColors at FloatingToolbarDefaults.standardFloatingToolbarColors and FloatingToolbarDefaults.vibrantFloatingToolbarColors which you can use or modify.
contentPaddingthe padding applied to the content of this FloatingToolbar.
scrollBehaviora 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.
shapethe shape used for this FloatingToolbar.
leadingContentthe leading content of this FloatingToolbar. The default layout here is a Column, so content inside will be placed vertically. Only showing if isExpanded is true.
trailingContentthe trailing content of this FloatingToolbar. The default layout here is a Column, so content inside will be placed vertically. Only showing if isExpanded is true.
expandedShadowElevationthe elevation for the shadow below this floating toolbar when expanded.
collapsedShadowElevationthe elevation for the shadow below this floating toolbar when collapsed.
contentthe main content of this FloatingToolbar. The default layout here is a Column, so content inside will be placed vertically.