-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialog doesn't close by tapping on "onConfirmBtnTap". #6
Comments
Hi, if you want to close the dialog you'd have to handle that yourself. All
you need to do is call Navigator.pop(context);
…On Fri, 11 Dec 2020, 5:21 am Irfan Akram, ***@***.***> wrote:
Dialog doesn't close when we use to tap "onConfirmBtnTap".
CoolAlert.show(
context: context,
type: CoolAlertType.success,
text: responseData['msg'],
onConfirmBtnTap: ( ){ ... }
}
And How to hide the "loading" dialog automatically?
CoolAlert.show(
context: context,
type: CoolAlertType.loading,
);
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGAMVZUJND3U67SJZRB2IODSUGT5FANCNFSM4UWCIR5A>
.
|
Hello, If I use |
No it won't close the page. If you have the dialog open and you trigger a Navigator.pop, the dialog closes and not the page. |
@webmasterscity i dunno why you would give a thumbs down to my answer but it's common knowledge that to close a dialog, all you have to do is pop it. You can refer to this article @irfan0429 @webmasterscity https://stackoverflow.com/questions/50683524/how-to-dismiss-flutter-dialog |
yes but i am using |
Instead of |
Dialog doesn't close when we use to tap "onConfirmBtnTap".
And How to hide the "loading" dialog automatically?
The text was updated successfully, but these errors were encountered: