At this point the state of the widget's element tree is no longer stable.

Database & APIs

I am having an exception when i delete a particular document and navigate back using custom dialog

Here is the exception:
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.

below is custom dialog action that return ture when confirmation is pressed and other one are the actions performed when i get true returned from custom dialog

What have you tried so far?

was not able to find the cause.

Did you check FlutterFlow's Documentation for this topic?
No
2
6 replies