Skip to content

Instantly share code, notes, and snippets.

@rubenquadros
Created August 24, 2021 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubenquadros/efb5611ea818db95e356ea1cbd7f7fcf to your computer and use it in GitHub Desktop.
Save rubenquadros/efb5611ea818db95e356ea1cbd7f7fcf to your computer and use it in GitHub Desktop.
Adding scroll behaviour to game details screen
@Composable
fun GameDetails(
gameDetails: GameDetailsEntity,
openGameTrailer: () -> Unit
) {
val scrollState = rememberScrollState()
Column(
modifier =
Modifier.fillMaxSize()
.verticalScroll(scrollState)
) {
// column children as above code snippet
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment