🌈 Create new beautiful Compose Gradients with our new wesite ->
Composable Function

rememberTopAppBarState

Creates a TopAppBarState that is remembered across compositions.

rememberTopAppBarState

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

Creates a TopAppBarState that is remembered across compositions.

Parameters

initialHeightOffsetLimit the initial value for TopAppBarState.heightOffsetLimit, which represents the pixel limit that a top app bar is allowed to collapse when the scrollable content is scrolled
initialHeightOffset the initial value for TopAppBarState.heightOffset. The initial offset height offset should be between zero and initialHeightOffsetLimit.
initialContentOffset the initial value for TopAppBarState.contentOffset

Content updated: