-
-
Save KatieBarnett/bdaabbc58362bc8aca4ac8a2193f3727 to your computer and use it in GitHub Desktop.
Single item scroll state detecting scroll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
val scrollState = rememberScrollState() | |
val isScrolled = remember { derivedStateOf { scrollState.value > 0 } } | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment