Skip to content

Inherit from widget should throw an exception in initState #5491

Closed

Description

@abarth

If you read an inherited value in initState, you won't get the new value when it changes. We should throw an exception if you try that to give faster feedback.

See #5483 for what goes wrong otherwise.

/cc @HansMuller @Hixie

Activity

  1. HansMuller commented on Aug 18, 2016

    @HansMuller
    Contributor

    That sounds like a good idea!

  2. self-assigned this
    on Aug 25, 2016
  3. github-actions commented on Sep 6, 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 Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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