redwood
redwood copied to clipboard
Android: A widget with Modifier.flex() will do very bad things if nested inside of a Row + Column
Summary
On Android, putting an element with Modifier.flex()
inside a Row which is inside a Column will do... strange things. It seems to shrink the Row's width to 0, and also somehow expands the height by some large amount.
Works as expected on iOS.
Repro
Column {
Row {
Text("Some text", modifier = Modifier.flex(1.0))
}
}
Screenshots
Attempted tweaks
- Works fine if using
Modifier.shrink
orModifier.grow
instead of flex