rememberTopAppBarState
fun rememberTopAppBarState(initialOffsetLimit: Float = -Float.MAX_VALUE, initialOffset: Float = 0.0f, initialContentOffset: Float = 0.0f): TopAppBarState
Creates a TopAppBarState that is remembered across compositions.
Changes to the provided initial values will not result in the state being recreated or changed in any way if it has already been created.
Parameters
initialOffsetLimit
the initial value for TopAppBarState.offsetLimit, which represents the offset that a top app bar is allowed to scroll when the scrollable content is scrolled
initialOffset
the initial value for TopAppBarState.offset. The initial offset should be between zero and initialOffsetLimit.
initialContentOffset
the initial value for TopAppBarState.contentOffset