Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

The loading box does not disappear #53

Closed
lqk9511 opened this issue Apr 22, 2020 · 7 comments
Closed

The loading box does not disappear #53

lqk9511 opened this issue Apr 22, 2020 · 7 comments

Comments

@lqk9511
Copy link

lqk9511 commented Apr 22, 2020

Describe the bug
When I update to the latest version.
If I trigger multiple loading boxes at the same time, I use the hide() they will not disappear.
because it has no dismiss().

To Reproduce

request(BuildContext context) {
  ProgressDialog pr = ProgressDialog(context, type: ProgressDialogType.Normal);
  pr.show();

  // dio ...

  pr.hide();
}

Expected behavior
Should disappear

Smartphone (please complete the following information):

  • Device: iPhone7
  • OS: iOS.13.3.1
  • flutter
    Flutter 1.12.13+hotfix.9 • channel stable • [email protected]:flutter/flutter.git
    Framework • revision f139b11009 (3 weeks ago) • 2020-03-30 13:57:30 -0700
    Engine • revision af51afceb8
    Tools • Dart 2.7.2
@fayaz07
Copy link
Owner

fayaz07 commented Apr 22, 2020

please use the code as

await pr.show();

await pr.hide();

@fayaz07 fayaz07 closed this as completed Apr 22, 2020
@lqk9511
Copy link
Author

lqk9511 commented Apr 22, 2020

please use the code as

await pr.show();

await pr.hide();

I tried that and it still doesn't work.
When it executes hide(), isShowing() is false,but it is displayed.

@fernando-s97
Copy link

@lqk9511 Did you manage to solve it? I'm facing the same issue on Android...

@fayaz07
Copy link
Owner

fayaz07 commented Aug 27, 2020

@fernando-s97 what happened like, you are facing all the issues which are present in the issues section?

@fernando-s97
Copy link

@fayaz07 Yes! The first dialog shows correctly, and the second one never hides, but the isShowing() method returns false

@fayaz07
Copy link
Owner

fayaz07 commented Aug 28, 2020

can you show me the code

@fernando-s97
Copy link

await state.progress.fold<Future>(
      () => _downloadDialog.hide(),
      (progress) => _downloadDialog
          .show()
          .then((_) => _downloadDialog.update(progress: progress)),
    );
log('showing: ${_downloadDialog.isShowing()}');

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants