title: Refresh swipe up to refresh widget flutter
body: <p>I have an app that gets some data from firebase and than calls a class to display a widget based on the data from firebase. I tried adding a swipe up refresh but i have no idea where to put it and what to to call on refresh. I was trying it using the RefreshIndicator.</p>
  <p>Here i will put my code in which it calls the database(firebase) and than creates an widget for each event in the database.</p>
  <p>If you need any more information, please feel free to comment. Thank you so much for the help!</p>
  <pre><code>FutureBuilder(
        
      future: databaseReference.once(),
      builder: (context, AsyncSnapshot&lt;DataSnapshot&gt; snapshot) {
         List lists = [];
          if (snapshot.hasData) {
          lists.clear();
  
          Map&lt;dynamic, dynamic&gt; values = snapshot.data.value;
          values.forEach((key, values) {
              lists.add(values);
          });
        
          return new ListView.builder(
                 primary: false,
  
            padding: EdgeInsets.only(left:12.0,right:12,bottom: 15,),
              shrinkWrap: true,
              itemCount: lists.length,
              
              itemBuilder: (BuildContext context, int index) {
              
              if(lists[index][&quot;Status&quot;]== &quot;Active&quot;){;
                  return Container(
                    
                    child:EvendWidget(lists[index][&quot;EventImage&quot;], 
        Text(lists[index][&quot;EventName&quot;]).data,
        Text(lists[index][&quot;EventLocation&quot;]+ &quot;, &quot;+lists[index][&quot;EventCounty&quot;] ).data,
        Text(lists[index][&quot;Date&quot;]+ &quot;, &quot;+lists[index][&quot;Time&quot;]+ &quot; - &quot;+lists[index][&quot;Time&quot;]).data,
        Text(lists[index][&quot;Duration&quot;]+ &quot; H&quot;).data,
        Text(lists[index][&quot;Genre&quot;]).data,
        Text(lists[index][&quot;Price&quot;]).data,false));}else{return SizedBox.shrink(); };
              });
          }
          return Container(
            margin: const EdgeInsets.only(top: 300),
            child:CircularProgressIndicator());
      }),
  </code></pre>