fayaz07 / progress_dialog

A light weight library to easily manage a progress dialog with simple steps whenever you need to do it. You can easily show and hide it.

Home Page:https://fayaz07.github.io/progress_dialog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue when await finishes quickly.

yalva opened this issue · comments

commented

Its not working when trying to hide it in less than a second, whenComplete gets executed, but progress continues to show

I'm making Dio async call after pr.show(), when network failure Dio returns immediately, at this point pr.hide().whenComplete() is getting executed but progress dialog getting shown

use await pr.show()