Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ean5533 opened this issue May 9, 2024 · 0 comments

Comments

@ean5533
Copy link

ean5533 commented May 9, 2024

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 ean5533 changed the title Android: A width with Modifier.flex() will do very bad things if nested inside of a Row + Column Android: A widget with Modifier.flex() will do very bad things if nested inside of a Row + Column May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants