@Composable
fun Modifier04() {
Row(
modifier = Modifier.fillMaxWidth()
) {
Box(
modifier = Modifier
.weight(1f)
.height(50.dp)
.background(Color.Red)
)
Box(
modifier = Modifier
.weight(2f)
.height(50.dp)
.background(Color.Green)
)
}
}
02-22
1987
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-25
1556
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)