Skip to content

We should pump one frame at app startup even if the screen is off #165

Closed

Description

@FlutterIssues

Issue by Hixie
Thursday Sep 17, 2015 at 15:29 GMT
Originally opened as https://github.com/flutter/engine/issues/1206


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.

Activity

  1. added this to the milestone on Nov 9, 2015
  2. abarth commented on Dec 5, 2015

    @abarth
    Contributor

    We now pump a single frame synchronously inside runApp.

  3. github-actions commented on Aug 17, 2021

    @github-actions

    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.

  4. locked as resolved and limited conversation to collaborators on Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions