title: Flutter: Progress dialog is not hiding
body: <p>I am using progress_dialog 1.2.0 package to show a progress dialog in my app, it is showing when I call <code>pr.show()</code> but not getting hidden when I call <code>pr.hide()</code>:</p>
  <pre><code>onTap: () async {
      pr.show();
  
      print('clicked custom category');
      print(categorylist[index].catName);
      print(categorylist[index].catId);
  
      // await getAllProductsInCategory(categorylist[index].catId);
  
      setState(() {
          catId = categorylist[index].catId;
          myinitlist.clear();
          myinitlist = List.from(productList);
          pr.hide();
      });
  },
  </code></pre>
  <p>When I uncomment that <code>getAllProductsInCategory()</code> function it hides the dialog.</p>