andbapps
04/11/2021, 8:38 PMIntrinsicSize
and Arrangement.SpacedBy
(code in thread)andbapps
04/11/2021, 8:38 PM@Composable
fun IntrinsicSizeTest() {
Row(
modifier = Modifier
.background(Color.White)
.height(IntrinsicSize.Min),
horizontalArrangement = Arrangement.spacedBy(32.dp)
) {
Box(
modifier = Modifier
.background(Color.Blue)
.weight(1f)
.aspectRatio(1f)
)
Box(
modifier = Modifier
.background(Color.Red)
.fillMaxHeight()
.width(32.dp)
)
}
}
andbapps
04/11/2021, 8:39 PMandbapps
04/11/2021, 8:39 PM