How to add a list of composables as parameter
Im trying to pass a list of Composables, in this case Columns, as a parameter to later populate a view, for that I'm adding the parameter List Unit)> on a composable function and populating a List with simple Columns.
The problem I'm having is that the Columns generate a Type mismatch
Required:
List
Found:
List
Is there a way to achieve this? Here I'll provide my code.
@Composable
fun LotsOfColumns() {
ColumnListSample(
myColumns = listOf(
Column {},...