-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Can we access your project?
- I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.
Current Behavior
am experiencing an intermittent console error, Looking up a deactivated widget's ancestor is unsafe, in my FlutterFlow application. This occurs during a common UI interaction flow involving a dialog and a ListView refresh, despite the intended data update and UI refresh working correctly.
Problem Description:
The error manifests when a user interacts with a dialog to filter a list view:
On a parent page, a button is clicked to open a custom dialog.
Inside the dialog, the user selects an option (e.g., a distance filter).
Upon pressing an "Apply" button within the dialog:
An App State variable (e.g., distance) is updated with the selected value.
The dialog is dismissed.
On the parent page, in the "On Dialog Close" callback of the "Open Dialog" action:
The App State variable is again updated with the dialog's returned value (though it's already updated by the dialog's internal action).
A "Refresh Database Request" action is triggered for the ListView that depends on this App State variable.
While the App State variable is successfully updated and the ListView does refresh to show the correct, filtered data (confirmed via network calls and UI observation), the aforementioned error frequently appears in the browser console. It is intermittent, occurring randomly and not every time the flow is executed.
I have observed that similar logic used elsewhere in the application, where dialogs update App State and trigger list refreshes, does not consistently produce this error.
Error Stack Trace (from console):
js_primitives.dart:28 The following assertion was thrown during a scheduler callback:
js_primitives.dart:28 Looking up a deactivated widget's ancestor is unsafe.
js_primitives.dart:28 At this point the state of the widget's element tree is no longer stable.
js_primitives.dart:28 To safely refer to a widget's ancestor in its dispose() method, save a reference to the ancestor by
js_primitives.dart:28 calling dependOnInheritedWidgetOfExactType() in the widget's didChangeDependencies() method.
js_primitives.dart:28
js_primitives.dart:28 When the exception was thrown, this was the stack:
js_primitives.dart:28 dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:3 throw
js_primitives.dart:28 packages/flutter/src/widgets/framework.dart 4885:9
js_primitives.dart:28 packages/flutter/src/widgets/framework.dart 4898:14 [_debugCheckStateIsActiveForAncestorLookup]
js_primitives.dart:28 packages/flutter/src/widgets/framework.dart 4919:12 dependOnInheritedWidgetOfExactType
js_primitives.dart:28 packages/clbxmobile/flutter_flow/debug_util.dart 32:19 maybeOf
js_primitives.dart:28 packages/clbxmobile/flutter_flow/flutter_flow_model.dart 96:38 get rootModel
js_primitives.dart:28 packages/clbxmobile/flutter_flow/flutter_flow_model.dart 101:40 get isRouteVisible
js_primitives.dart:28 packages/clbxmobile/flutter_flow/debug_util.dart 202:27
js_primitives.dart:28 packages/flutter/src/scheduler/binding.dart 1397:7 [_invokeFrameCallback]
js_primitives.dart:28 packages/flutter/src/scheduler/binding.dart 1331:11 handleDrawFrame
js_primitives.dart:28 packages/flutter/src/scheduler/binding.dart 1176:5 [_handleDrawFrame]
js_primitives.dart:28 lib/_engine/engine/platform_dispatcher.dart 1408:5 invoke
js_primitives.dart:28 lib/_engine/engine/platform_dispatcher.dart 310:5 invokeOnDrawFrame
js_primitives.dart:28 lib/_engine/engine/initialization.dart 187:36
j
Expected Behavior
Dont't wnt that error that stuck my application at some point
Steps to Reproduce
1.Go to all venue from home page
2.try to change distance
Reproducible from Blank
- The steps to reproduce above start from a blank project.
Bug Report Code (Required)
IT4glfHl8ZN1mMdY0LrULe9amWUvHEwia4c0st5Hd0gdCOPrBuwQZszBXBBpZ+KlaVNcD1H8vHIfw/zevYSWEsInCzSZf7p4+pZ2WhX0e2i6VLqNBcyePnZBEe9NCn6f38KJnxMkOvt1c2Rh2nGAJ+ytfzDDBOu/Zwh9f6PHaOI=
Visual documentation
Environment
- FlutterFlow version: v6.0.21 (released JUNE 17, 2025)
- Platform:(e.g. Web, MacOS Desktop): Web
- Browser name and version:: Chrome 137.0.7151.120
- Operating system and version affected: (desktop): macOS SONOMA 14.6Additional Information
I attached the video and Action block for referances
