I was expecting to see two boxes from this code, b...
# compose
c
I was expecting to see two boxes from this code, but only see one. I understand that I can try to use weight, but I want to be able to add more boxes programmatically and so I don't want to set weight to .5f now, then .33 for 3 boxes, .25 for 4 boxes, etc. Shouldn't the boxes inside the row resize to meet their aspect ratio so other boxes can fit in the same row?
Copy code
Row(modifier = Modifier.fillMaxWidth()) {
    Box(modifier = Modifier.border(1.dp, Color.Blue).aspectRatio(16/9F))
    Box(modifier = Modifier.border(1.dp, Color.Blue).aspectRatio(16/9F))
}
d
Fairly certain you can give all the `Box`es a weight of 1f and Row will do the math for you.
At least that's how weight worked on Android.
c
That worked! Thank you. Feel a little 🤦 about not getting the solution myself. It's been a long week. 😄