remember Nested Scroll Aware Visibility State
fun rememberNestedScrollAwareVisibilityState(threshold: Dp = 48.dp, initiallyVisible: Boolean = true): VisibilityState.NestedScrollAware
Creates a VisibilityState.NestedScrollAware for a nested-scrolling container.
Apply the returned state's nestedScrollConnection to the scrolling parent:
val visibility = rememberNestedScrollAwareVisibilityState()
LazyColumn(Modifier.nestedScroll(visibility.nestedScrollConnection)) { /* ... */}
StylishFab(onClick = {}, visibilityState = visibility) { /* ... */}Content copied to clipboard
Parameters
threshold
Distance of continuous scrolling in one direction before visibility changes.
initially Visible
Initial visibility before any scroll gesture is observed.