flutter_progress_dialog icon indicating copy to clipboard operation
flutter_progress_dialog copied to clipboard

dismiss error

Open badboy-tian opened this issue 6 years ago • 2 comments

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>

badboy-tian avatar Dec 18 '19 03:12 badboy-tian

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();});

salvador-moreno avatar Feb 12 '20 11:02 salvador-moreno

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

Sandeepbandral avatar Jan 16 '21 17:01 Sandeepbandral