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
isExpanded | 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. |
modifier | the Modifier to be applied to this FloatingToolbar. |
colors | the colors used for this floating toolbar. There are two predefined FloatingToolbarColors at FloatingToolbarDefaults.standardFloatingToolbarColors and FloatingToolbarDefaults.vibrantFloatingToolbarColors which you can use or modify. |
contentPadding | the padding applied to the content of this FloatingToolbar. |
scrollBehavior | 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 | the shape used for this FloatingToolbar. |
leadingContent | the 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. |
trailingContent | the 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. |
expandedShadowElevation | the elevation for the shadow below this floating toolbar when expanded. |
collapsedShadowElevation | the elevation for the shadow below this floating toolbar when collapsed. |
content | the main content of this FloatingToolbar. The default layout here is a Column , so content inside will be placed vertically. |