-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Avoid scheduling a forced frame when there is no child to the renderView #102556
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
Conversation
|
from the internal bug, you can see this pretty clearly: an app that looks like this: void main() {
WidgetsFlutterBinding.ensureInitialized();
}Eventually produces this: On Android. |
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Yes, it was in a CP: #102193, so we'll need a CP for this as well. |
goderbauer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Filed #102583 |
…103101) * Add the new hash * [flutter.js] Wait for reg.update, then activate sw (if not active yet). (#101464) * Avoid scheduling a forced frame when there is no child to the renderView (#102556) * Migrate AppBar to Material 3 (#101884) * Keeping the super parameters * Fixing semi-colon issue Co-authored-by: David Iglesias <[email protected]> Co-authored-by: Dan Field <[email protected]> Co-authored-by: Darren Austin <[email protected]>
xref b/230429702
See #101544
We can get multiple calls to
handleMetricsChangedduring application startup. These calls may happen at any point, sometimes beforerunAppis called. Before a render object is attached to the rootRenderView, we should avoid forcing a frame to be scheduled, as it may cause a black flickering and dismissal of the splash screen too early on Android.Depending on what branch 101544 landed in, we may need to look at cherry picking this change in.
/cc @jiahaog fyi