Skip to content

Instantly share code, notes, and snippets.

@AlShevelev
Created July 16, 2022 11:57
Show Gist options
  • Save AlShevelev/469a2d372beeffcad8fc59220e112caf to your computer and use it in GitHub Desktop.
Save AlShevelev/469a2d372beeffcad8fc59220e112caf to your computer and use it in GitHub Desktop.
@Composable
fun ScrollableContent(
contentTopPadding: Dp,
modifier: Modifier = Modifier
) {
Card(
modifier = modifier.padding(top = contentTopPadding),
backgroundColor = Color.Companion.LightGray,
shape = RoundedCornerShape(30.dp, 30.dp, 0.dp, 0.dp)
) {
LazyColumn(
modifier = Modifier
.padding(horizontal = 16.dp)
) {
items(100) { index ->
Text("I'm item $index", modifier = Modifier
.fillMaxWidth()
.padding(16.dp))
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment