title: Flutter ListView EmptyState with refresh
body: <p>I have a page in my app with a ListView. I'm using a StreamBuilder to receive data. When there is data I build the listview children and the listview is wrapped inside a RefreshIndicator. This is working fine.</p>
  
  <p>Now I want to handle the situation when there is no data aka EmptyState. Be able to display a Container with some content, while still be able to support pull to refresh to force the page/Listview to check for data.</p>
  
  <p>This is how I'm currently doing it</p>
  
  <pre><code>return RefreshIndicator(
              key: upcomingRefreshIndicatorKey,
              onRefresh: handleRefresh,
              child: snapshot.hasData ? list : Stack(children: &lt;Widget&gt;[list, emptystate],) ,
  
          );
  </code></pre>
  
  <p>I'm not sure this is the way to handle EmptyState with ListView, but so far this is the only way I can see to still support refresh when the list is empty. So my main question is how you best handle empty state with LIstView and still supporting PullToRefresh?</p>