Brais Gabin
01/03/2023, 11:09 AMList<@Composable () -> Unit>. And I want to display it in a LazyColumn with a Space between each of them.
LazyColumn {
items(list) { composable ->
composable.invoke()
Space(height = 4.dp)
}
}
The problem is that some of them can emit nothing to the tree. That means that visually I get double Space between some components. How would you avoid this problem? Those functions that emit nothing could start emitting at any point if their state change.Jakub Syty
01/03/2023, 11:11 AMTolriq
01/03/2023, 11:12 AMverticalArrangement = Arrangement.spacedBy(4.dp),Jakub Syty
01/03/2023, 11:16 AMBrais Gabin
01/03/2023, 11:52 AMverticalArragement checks the tree instead of calls to itemsJakub Syty
01/03/2023, 11:53 AM