Is there any way to make each element in a row the...
# compose
p
Is there any way to make each element in a row the height of the largest element? I have these two cards and they should have the same height. I've tried a lot with requireHeight(Intrinsics.Min) but couldn't find a solution
t
Add
Modifier.height(IntrinsicSize.Min)
to your row and use
Modifier.fillMaxheight()
on your cards.
Copy code
Row(
    Modifier
        .fillMaxWidth()
        .height(IntrinsicSize.Min)
        .padding(16.dp),
    Arrangement.spacedBy(16.dp)
) {
    Card(Modifier.weight(1f).fillMaxHeight()) {
        Text("little content")
    }
    Card(Modifier.weight(1f).fillMaxHeight()) {
        Column {
            repeat(10) { Text("more content") }
        }
    }
}
p
Aah now that works; that is weird
It doesn't work with my layout however, but for the little emojis in the bottom there is a
FlowRow
. If I remove that it works as expected
j
Nice UI @Paul Woitaschek