Is there any way to specify width as a percentage? ``` Box(modifier = Modifier.width(100.dp)) { ...
k
Is there any way to specify width as a percentage?
Copy code
Box(modifier = Modifier.width(100.dp)) {
           Box(modifier = Modifier.preferredSize(50 %) ) { // 50% equals 50.dp
                    Text("HELLO")
           }
}
a
Modifier.fillMaxWidth(0.5f)
k
Thanks!! 😄