Jonas Frid
10/20/2021, 12:07 PMJonas Frid
10/20/2021, 12:09 PMLazyColumn(modifier = Modifier
.fillMaxWidth()
.wrapContentHeight()
.clip(RoundedCornerShape(OneAppTheme.cornerRadius.listItemRadius.dp))
.background(OneAppTheme.colors.listItemColor.toColor())
) {
items(countries) {
Text(it.name)
}
}
But that is not a container around the items that will scroll with the items, it is styling on the LazyColumn itself.martinsumera
10/20/2021, 12:22 PMLazyColumn {
items(countries) { country ->
Box(modifier = Modifier.whatever()) {
Text(country.name)
}
}
}
Is this what you had in the mind?Jonas Frid
10/20/2021, 2:31 PMcb
10/20/2021, 4:03 PMSurface { Column { ... } }
. You can't add arbitrary background containers to a group of items.Jonas Frid
10/20/2021, 5:07 PM