title: Use progress/activity indicator waiting for await to finish
body: <p>I have an async function. I'm using it correctly. Here's what it looks like:</p>
  
  <pre><code>Future&lt;void&gt; getData() async
  {
  // get data from DB
  }
  </code></pre>
  
  <p>It works. I call it from the </p>
  
  <pre><code>void initState  ()
  {
      super.initState();
  
      getData();
  }
  </code></pre>
  
  <p>I would like to make sure that there is a progress indicator running until the function has completed whatever it was doing. </p>
  
  <p>Can someone help me with that? I have no idea where to begin.</p>
  
  <p>Parts of this function get completed at whatever time/speed it takes it each command to finish, but I need to wait for the entire getData() function to finish completely before my app starts. How can I do that?</p>