Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG]: Error Widget #1669

Open
hallo43 opened this issue Mar 3, 2025 · 0 comments
Open

[BUG]: Error Widget #1669

hallo43 opened this issue Mar 3, 2025 · 0 comments

Comments

@hallo43
Copy link

hallo43 commented Mar 3, 2025

When i open account->settings is error occur:

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.
dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 307:3 throw
packages/flutter/src/widgets/framework.dart 4963:9
packages/flutter/src/widgets/framework.dart 4976:14 [_debugCheckStateIsActiveForAncestorLookup]
packages/flutter/src/widgets/framework.dart 4997:12 dependOnInheritedWidgetOfExactType
packages/flutter/src/material/popup_menu_theme.dart 279:16 of
packages/flutter/src/material/popup_menu.dart 1519:62 [_positionBuilder]
packages/flutter/src/material/popup_menu.dart 972:32
packages/flutter/src/widgets/layout_builder.dart 201:70 updateChildCallback
packages/flutter/src/widgets/framework.dart 3056:11 buildScope
packages/flutter/src/widgets/layout_builder.dart 240:5 [_rebuildWithConstraints]
packages/flutter/src/rendering/object.dart 2827:9
packages/flutter/src/rendering/object.dart 1161:7 [_enableMutationsToDirtySubtrees]
packages/flutter/src/rendering/object.dart 2826:7 invokeLayoutCallback
packages/flutter/src/widgets/layout_builder.dart 293:5 rebuildIfNecessary
packages/flutter/src/widgets/layout_builder.dart 390:5 performLayout
packages/flutter/src/rendering/object.dart 2548:7 [_layoutWithoutResize]
packages/flutter/src/rendering/object.dart 1112:17 flushLayout
packages/flutter/src/rendering/object.dart 1125:14 flushLayout
packages/flutter/src/rendering/binding.dart 616:5 drawFrame
packages/flutter/src/widgets/binding.dart 1231:13 drawFrame
packages/flutter/src/rendering/binding.dart 482:5 [_handlePersistentFrameCallback]
packages/flutter/src/scheduler/binding.dart 1442:7 [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1355:9 handleDrawFrame
packages/flutter/src/scheduler/binding.dart 1208:5 [_handleDrawFrame]
lib/_engine/engine/platform_dispatcher.dart 1347:5 invoke
lib/_engine/engine/platform_dispatcher.dart 301:5 invokeOnDrawFrame
lib/_engine/engine/initialization.dart 190:36
dart-sdk/lib/_internal/js_dev_runtime/patch/js_allow_interop_patch.dart 224:27 _callDartFunctionFast1

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant