Composable Function

rememberBottomAppBarState

Creates a BottomAppBarState that is remembered across compositions.

rememberBottomAppBarState

Source set: Common
@Composable
public fun rememberBottomAppBarState(
    initialHeightOffsetLimit: Float = -Float.MAX_VALUE,
    initialHeightOffset: Float = 0f,
    initialContentOffset: Float = 0f,
): BottomAppBarState

Creates a BottomAppBarState that is remembered across compositions.

Parameters

initialHeightOffsetLimit the initial value for BottomAppBarState.heightOffsetLimit, which represents the pixel limit that a bottom app bar is allowed to collapse when the scrollable content is scrolled
initialHeightOffset the initial value for BottomAppBarState.heightOffset. The initial offset height offset should be between zero and initialHeightOffsetLimit.
initialContentOffset the initial value for BottomAppBarState.contentOffset
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: