androidx.compose.material3
BottomAppBarDefaults
Object
No hand-written docs yet.
Contains default values used for the bottom app bar implementations.
object BottomAppBarDefaults
Properties
containerColor
@Composable val containerColor: Color
Default color used for BottomAppBar container
ContainerElevation
val ContainerElevation: Dp
Default elevation used for BottomAppBar
ContentPadding
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).
windowInsets
@Composable val windowInsets: WindowInsets
Default insets that will be used and consumed by BottomAppBar.
bottomAppBarFabColor
@Composable val bottomAppBarFabColor: Color
The color of a BottomAppBar's FloatingActionButton
FlexibleContentPaddingSince 1.10Experimental
val FlexibleContentPadding: PaddingValues
Default padding used for FlexibleBottomAppBar.
FlexibleBottomAppBarHeightSince 1.10Experimental
val FlexibleBottomAppBarHeight: Dp
Default height of a flexible FlexibleBottomAppBar. The height here represents the height of the bottom app bar in its expanded state.
FlexibleHorizontalArrangementSince 1.10Experimental
val FlexibleHorizontalArrangement: Arrangement.Horizontal
A default Arrangement that will be used to space a FlexibleBottomAppBar's content.
FlexibleFixedHorizontalArrangementSince 1.10Experimental
val FlexibleFixedHorizontalArrangement: Arrangement.Horizontal
An Arrangement that will be used to space FlexibleBottomAppBar's with a fixed spacing.
Functions
exitAlwaysScrollBehaviorExperimental
@Composable
fun exitAlwaysScrollBehavior(
state: BottomAppBarState = rememberBottomAppBarState(),
canScroll: () -> Boolean = { true },
snapAnimationSpec: AnimationSpec<Float>? = MotionSchemeKeyTokens.FastSpatial.value(),
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.
Library docs
Contains default values used for the bottom app bar implementations.