andbapps
IntrinsicSize
Arrangement.SpacedBy
@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) ) } }
A modern programming language that makes developers happier.