Skip to content

Looking up a deactivated widgets ancestor is unsafe #2

Open
@wyklif

Description

@wyklif

Hi, thanks for the wonderful tutorial.
I keep getting the error looking Up a deactivated widgets ancestor is unsafe. At this point the state of the element tree is no longer stable to safely refer to a widget's ancestor in it's dispose() method, save a reference to the ancestor by calling InheritFromWidgetOfExactType() in the widget's didChangeDependancies() method

This occurs during clicking save when creating a new note and it tries to pop back to the notelist view

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions