-
-
Notifications
You must be signed in to change notification settings - Fork 899
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 render measuring problem #1305
Labels
Comments
mancj
added a commit
to mancj/flame
that referenced
this issue
Jan 8, 2022
mancj
added a commit
to mancj/flame
that referenced
this issue
Jan 8, 2022
mancj
added a commit
to mancj/flame
that referenced
this issue
Jan 8, 2022
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current bug behaviour
When i run my game for the first time or in the release build, some images are rendered in wrong size.
This happens because of system animation rotating the screen from the portrait mode to landscape when the app is open. onGameResize called several times and it seems that components do not handle this resize. So at the first resize, components are measured for the portrait mode, but when the screen rotated, the game do not change it's measuring. If i set some delay before launching the game widget, everything is ok.
Steps to reproduce
Run the app for the first time or in the release mode. Here is a little working example
Log output
Flutter doctor output
More environment information
More information
Sample code to reproduce the bug
Discord discussion of the bug with videos and some production code
The text was updated successfully, but these errors were encountered: