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

Bug on hide

Lzyct opened this issue · comments

Describe the bug
I have issue when try to hide progress dialog.
It's always showing if distance between show and hide is fast

To Reproduce
Steps to reproduce the behavior:
1.show progress dialog
2.try without delay then hide

Expected behavior
progress dialog should be hide

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: All

use await before show and hide methods

i was use await when call show and hide method but it's not work @fayaz07
progressbar not hiding.
Thanks

image

stack in this

Fix : Need to add delay before hide progress dialog

No, you wouldn't need to do that, you can just fix it by adding await keyword

not working if just add await,
i was add await and still stuck when delay between .show() and .hide() it's too fast, so i add delay about 300ms before hide