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

dismiss error #2

Open
badboy-tian opened this issue Dec 18, 2019 · 2 comments
Open

dismiss error #2

badboy-tian opened this issue Dec 18, 2019 · 2 comments

Comments

@badboy-tian
Copy link

Unhandled Exception: NoSuchMethodError: The method 'showDismissAnim' was called on null.
Receiver: null
Tried calling: showDismissAnim()
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1      ProgressFuture.dismiss (package:flutter_progress_dialog/src/core/future.dart:25:34)
#2      ProgressManager.dismissAll.<anonymous closure>
@salvador-moreno
Copy link

This happens to me as well when showProgressDialog() and dismissProgressDialog() are called too close in time. Putting it into a Future.delayed serves as a workaround, however, it is not a propper solution.

Future.delayed(const Duration(milliseconds: 1000), () {dismissProgressDialog();});

@Sandeepbandral
Copy link

Its been a few hours that I stuck in this issue, your answer work like a charm. thanks!

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

No branches or pull requests

3 participants