Skip to content

Should have a guide for usage (and implementation) of ".of()"-style functions #4155

@Hixie

Description

@Hixie

e.g. talking about how you have to make sure the context you pass in isn't the context of the widget that built the widget you're looking for (e.g. an app's top-level widget looking for the Navigator or Scaffold).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/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