Skip to content
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

Feature Request: isShowing #5

Closed
zenkog opened this issue Mar 29, 2021 · 1 comment
Closed

Feature Request: isShowing #5

zenkog opened this issue Mar 29, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@zenkog
Copy link

zenkog commented Mar 29, 2021

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

@nizwar nizwar added the enhancement New feature or request label Mar 30, 2021
@nizwar
Copy link
Owner

nizwar commented Mar 30, 2021

Thankyou for your request, i'll provide this feature on next update

@nizwar nizwar closed this as completed Jun 4, 2021
nizwar added a commit that referenced this issue Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants