You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Case:
We want to be able to check whether the dialog is currently showing on the screen, a.k.a was showing and has not been dismissed.
Will be useful when we are using state management to control the progress dialog.
Example use case:
// Global to the StatefulWidget State
ProgressDialog progressDialog;
// in Init of a StatefulWidget
@override
void initState() {
progressDialog = ProgressDialog(context);
progressDialog.show();
super.initState();
}
// ... in another part of the code
if(progressDialog.isShowing()) {
print('dialog is still showing! Closing now');
progressDialog.dismiss();
}
Thank you
The text was updated successfully, but these errors were encountered:
Case:
We want to be able to check whether the dialog is currently showing on the screen, a.k.a was showing and has not been dismissed.
Will be useful when we are using state management to control the progress dialog.
Example use case:
Thank you
The text was updated successfully, but these errors were encountered: