willyrs
04/09/2022, 9:08 PMsetContent {
MyTheme {
Surface(color = MaterialTheme.colors.background) {
Column(Modifier.fillMaxHeight()) {
ListComposable(getList())
}
}
}
}
The ListComposable:
@Composable
fun ListComposable(list: List<Info>, modifier: Modifier = Modifier) {
LazyColumn(modifier) {
items(items = groupedList, itemContent = { item ->
Text(item.value) // CRASH HERE
})
}
}
I don't understand what's happening.. If I pass an empty list, it works. When it's non empty it crashes. The Info is a simple data class with just a valuewillyrs
04/09/2022, 9:14 PMChris Sinco [G]
04/09/2022, 11:39 PM