Tiago Nunes
05/30/2021, 11:46 AMRow {
columns.forEach {
Card(Modifier.weight(1f))
}
}
In my case the number of columns is dynamic, and the max number of columns is 3
And I get a row looking like this, when I have 3 columns: (each card has weight 1)
[ ] [ ] [ ]
And when there is only 1 column, I get this: (each card has weight 1)
[ ]
I wanted to get this: (each card has weight 1, weight sum is 3)
[ ]Albert Chang
05/30/2021, 12:10 PMSpacer
with the weight remained.Albert Chang
05/30/2021, 12:12 PMModifier.fillMaxWidth(fraction = 1 / 3f)
on the first card, and Modifier.fillMaxWidth(fraction = 1 / 2f)
on the second, and so on.Tiago Nunes
05/30/2021, 12:16 PMVipulyaara
05/30/2021, 12:36 PMZach Klippenstein (he/him) [MOD]
05/30/2021, 2:35 PMTiago Nunes
05/30/2021, 2:48 PM