I have a request to the server, when I use FutureBuilder, the ConnectionState.waiting section, I want to use a custom dialog, but after ConnectionState.done, this dialog does not close, it does not even do Navigator.pop(context).
enter image description here
enter image description here
2
Answers
Unfortunately, it is not possible to disable Alert Dialog using object orientation, and I designed dialogs on a separate page, and Navigator.pop() does not work, but with this method, I achieved my desired result.
show and dismiss Alert Dialog
}
Try this
Before
ConnectionState.waiting
just call thisonLoading(context);
then