You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
We should pump one frame at app startup even if the screen is off #165
Authors are rarely going to test their apps with the screen off, but if we don't pump their app with the screen off, their App widget isn't going to be synced, their RenderObject tree isn't going to be laid out, and so forth, so if they try to do anything using the tree, it'll fail.
So we should either pump one frame to ensure that the app is always more or less in the same state, or we should document patterns and anti-patterns for how to do things that depend on app state and render tree layout, e.g. don't use a timer but use an animation frame callback, etc.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
abarth commentedon Dec 5, 2015
We now pump a single frame synchronously inside
runApp.abarth commentedon Dec 5, 2015
See https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/binding.dart#L81
enable LTO for Android (flutter#165)
github-actions commentedon Aug 17, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.