How to check whether Alert Dialog is open in flutter

you can use this method:

_isThereCurrentDialogShowing(BuildContext context) =>
  ModalRoute.of(context)?.isCurrent != true;

Leave a Comment