title: How to dismiss flutter dialog?
body: <p>I am new to flutter, I want to dismiss my dialog after the task completion. I've tried with: </p>
  
  <pre><code>Navigator.pop(context, true); 
  </code></pre>
  
  <p>But my screen is getting black and dialog is still up there. here is my dialog code. </p>
  
  <pre><code>Dialog _dialog = new Dialog(
    child: new Row(
      mainAxisSize: MainAsixSize.min, 
      children: &lt;Widget&gt; [
      new CircularProgressIndicator(), 
      new Text("Loading")]),     
  
  ); 
  </code></pre>