-
-
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
Lifecycle diagram incorrect - onGameResize called before onLoad #2674
Comments
True, good catch!
I'll assign you to the issue. :) |
Hey @spydon I changed the diagram, and I thought I would write a simple program to validate the call sequence. What I'm seeing is the following:
This doesn't align with what you describe above. If I create a
I'm concerned that I'm documenting unexpected or incorrect behavior. I completely respect that I may also be doing something wrong. You can check out the sources for jlyonsmith/flame_test to see how I tested. |
Are all there cases only happening when you attach it to a new
|
I was hoping to dash this one off quickly, but it seems like this is going to require a little more research. Briefly, my answers to the above are:
The reversed EDIT: |
OK, although I still see the |
Current bug behavior
onGameResize
is called beforeonLoad
. This is different from what the lifecycle diagram shows.Expected behavior
onGameResize
is called beforeonLoad
. This is important to know as the documentation implies that you can useonLoad
to initialize componentsSteps to reproduce
Add the following code to any
with FlameGame
class:Observe the sequence of output:
Flutter doctor output
More environment information
Log information
None.
More information
I'd be happy to update the lifecycle diagram.
The text was updated successfully, but these errors were encountered: