Skip to content

Should be able to subscribe to changes on properties of MediaQuery instead of all changes #102060

@moffatman

Description

@moffatman

Since flutter/engine#29281 during keyboard opening animation the root MediaQuery will be updated with each frame. There are a lot of widgets which might call MediaQuery.of(context) but not all depend on all of the MediaQuery properties. It would be more efficient to only rebuild those widgets which depend on the change in screen dimensions, but not the widgets which depend on the text scale factor, which presumably isn't changing with each frame.

Related to #98115
Somewhat related to #96044

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: proposalA detailed proposal for a change to Flutterf: cupertinoflutter/packages/flutter/cupertino repositoryf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions