iamthevoid
06/21/2021, 12:34 PMBox
fills size of root, not parent size.iamthevoid
06/21/2021, 12:34 PM@Preview
@Composable
fun TestFill() {
Row(
modifier = Modifier
.background(color = Color.Red)
.wrapContentHeight()
.wrapContentWidth()
.defaultMinSize(144.dp, 48.dp),
horizontalArrangement = Arrangement.SpaceBetween
) {
//Box(modifier = Modifier.background(color = Color.White).fillMaxHeight().aspectRatio(1f))
//Box(modifier = Modifier.background(color = Color.White).fillMaxHeight().aspectRatio(1f))
}
}
iamthevoid
06/21/2021, 12:36 PMAlbert Chang
06/21/2021, 1:37 PMiamthevoid
06/21/2021, 2:12 PMheight(intristicSize)
on parent