BottomAppBarSparkDefaults
object BottomAppBarSparkDefaults
Contains default values used for the bottom app bar implementations.
Functions
Link copied to clipboard
fun bottomAppBarScrollBehavior(state: BottomAppBarState = rememberBottomAppBarState(initialContentOffset = Float.POSITIVE_INFINITY), canScroll: () -> Boolean = { true }, snapAnimationSpec: AnimationSpec<Float>? = null, flingAnimationSpec: DecayAnimationSpec<Float>? = null): SparkBottomAppBarScrollBehavior
Creates a SparkBottomAppBarScrollBehavior for BottomAppBar. This scroll behavior is designed to work in conjunction with scrolled content to change the bottom app bar appearance as the content scrolls. The bottom app bar will show elevation when BottomAppBarState.contentOffset 0, indicating there's content above the current scroll position to scroll back to.