redwood icon indicating copy to clipboard operation
redwood copied to clipboard

Android: A widget with Modifier.flex() will do very bad things if nested inside of a Row + Column

Open ean5533 opened this issue 9 months ago • 1 comments

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

image

Attempted tweaks

  • Works fine if using Modifier.shrink or Modifier.grow instead of flex

ean5533 avatar May 09 '24 18:05 ean5533