Skip to content

Widget got rebuilt due to outdated dependencies #12992

@kezhuw

Description

@kezhuw

Suppose widget W depends on InheritedWidget D based some condition be true. After a asynchronous operation, condition changed from true to false. From now on, W doesn't depend on D actually, but W still got rebuilt due to changes in D. condition can be internal state of W or information from other InheritedWidget.

I post a test gist to show this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: performanceRelates to speed or footprint issues (see "perf:" labels)d: api docsIssues with https://api.flutter.dev/frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions