9 lines
311 B
Kotlin
9 lines
311 B
Kotlin
package app.extensions
|
|
|
|
import androidx.compose.foundation.lazy.LazyListState
|
|
|
|
fun LazyListState.observeScrollChanges() {
|
|
// When accessing this property, this parent composable is recomposed when the scroll changes
|
|
// because LazyListState is marked with @Stable
|
|
this.firstVisibleItemScrollOffset
|
|
} |