8000 03_Tank · Issue #24 · flutter-simulator/dffp3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
03_Tank #24
Open
Open
@flutter-simulator

Description

@flutter-simulator

03_Tank

0 - Looking up a deactivated widget's ancestor is unsafe.

At this point the state of the widget's element tree is no longer stable.
To safely refer to a widget's ancestor in its dispose() method, save a reference to the ancestor by calling dependOnInheritedWidgetOfExactType() in the widget's didChangeDependencies() method.
Kommentar:

#0      Element._debugCheckStateIsActiveForAncestorLookup.<anonymous closure> (package:flutter/src/widgets/framework.dart:4032:9)
#1      Element._debugCheckStateIsActiveForAncestorLookup (package:flutter/src/widgets/framework.dart:4046:6)
#2      Element.findAncestorStateOfType (package:flutter/src/widgets/framework.dart:4093:12)
#3      Navigator.of (package:flutter/src/widgets/navigator.dart:2736:40)
#4      ShowCommentInputAction.invoke.<anonymous closure>.<anonymous closure> (package:dotup_flutter_dffp/src/actions/show_comment_input_action.dart:51:27)
<asynchronous suspension>

2021-11-12T15_47_19_088888.jpg

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0