I'm trying to produce a layout in Jetpack compose, where I have to scale the content of a Box. But I've noticed that after being scaled, the Box is still surrounded with empty space, enough to put unscaled content. I need to get rid of that space, without applying any modifiers to the content of the Box
@Composable
fun Power() {
Row {
Box(
Modifier
.background(Color.Green)) {
Text("a")
}
Box(
Modifier.scale(0.5f)
.background(Color.Yellow)) {
Text("bbbb")
}
}
}
Expectations:
Reality:


