Skip to content

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

@FlutterIssues

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.

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