SearchBarScrollBehavior


A SearchBarScrollBehavior defines how a search bar should behave when the content beneath it is scrolled.

Summary

Public properties

NestedScrollConnection

A NestedScrollConnection that should be attached to a androidx.compose.ui.input.nestedscroll.nestedScroll in order to keep track of scroll events.

Cmn
SearchBarScrollState

A SearchBarScrollState that is attached to this behavior and is read and updated when scrolling happens.

Cmn
Modifier

The modifier that adds scrolling behavior to the search bar component.

Cmn

Public properties

nestedScrollConnection

val nestedScrollConnectionNestedScrollConnection

A NestedScrollConnection that should be attached to a androidx.compose.ui.input.nestedscroll.nestedScroll in order to keep track of scroll events.

scrollState

val scrollStateSearchBarScrollState

A SearchBarScrollState that is attached to this behavior and is read and updated when scrolling happens.

searchBarScrollBehaviorModifier

val searchBarScrollBehaviorModifierModifier

The modifier that adds scrolling behavior to the search bar component. AppBarWithSearch applies this automatically.