Skip to content

didChangeDependencies docs don't specify where to call super #28925

Closed

Description

@feinstein

didChangeDependencies annotation says we must call super.didChangeDependencies() if we override this method in a State class, but the docs don't specify if we should do it at the beginning or at the end, like initState and many others do specify.

Activity

  1. pushpendraKh commented on Aug 20, 2019

    @pushpendraKh

    any update on this?

  2. added
    P2Important issues not at the top of the work list
    on Feb 7, 2023
  3. jhon2520 commented on Aug 11, 2024

    @jhon2520

    Any update ?

  4. navaronbracke commented on Mar 24, 2026

    @navaronbracke
    Contributor

    When looking at the framework itself, it looks like it is also not consistent: https://github.com/search?q=repo%3Aflutter%2Fflutter%20didChangeDependencies()&type=code

    However, considering it is a "constructive" lifecycle method, I would expect implementers to have to call the super method first in the override.

  5. added a commit that references this issue on May 4, 2026
    1a05b8a
  6. added a commit that references this issue on Jul 29, 2026
    e90043d
  7. added a commit that references this issue on Aug 5, 2026
    8ef2fe4
  8. github-actions commented on Aug 19, 2026

    @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.

  9. locked as resolved and limited conversation to collaborators on Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.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