Created
August 24, 2021 19:25
-
-
Save rubenquadros/efb5611ea818db95e356ea1cbd7f7fcf to your computer and use it in GitHub Desktop.
Adding scroll behaviour to game details screen
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
@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