BottomAppBarDefaults

Contains default values used for the bottom app bar implementations.

Properties

Link copied to clipboard
@get:Composable
val bottomAppBarFabColor: Color
Link copied to clipboard
@get:Composable
val containerColor: Color

Default color used for BottomAppBar container

Link copied to clipboard

Default elevation used for BottomAppBar

Link copied to clipboard
val ContentPadding: PaddingValues

Default padding used for BottomAppBar when content are default size (24dp) icons in IconButton that meet the minimum touch target (48.dp).

Link copied to clipboard
@get:Composable
val windowInsets: WindowInsets

Default insets that will be used and consumed by BottomAppBar.

Functions

Link copied to clipboard
@Composable
fun exitAlwaysScrollBehavior(state: BottomAppBarState = rememberBottomAppBarState(), canScroll: () -> Boolean = { true }, snapAnimationSpec: AnimationSpec<Float>? = spring(stiffness = Spring.StiffnessMediumLow), flingAnimationSpec: DecayAnimationSpec<Float>? = rememberSplineBasedDecay()): BottomAppBarScrollBehavior

Returns a BottomAppBarScrollBehavior. A bottom app bar that is set up with this BottomAppBarScrollBehavior will immediately collapse when the content is pulled up, and will immediately appear when the content is pulled down.