title: Flutter/Dart and Firebase, How to get data in list not in realdatetime
body: <p>I am creating a Flutter app that allows a list of products of a store. To practice, I have base myself in flutter firebase <a href="https://pub.dartlang.org/packages/firebase_database#-example-tab-" rel="nofollow noreferrer">example</a>:</p>
  
  <p>I have managed to show a list with products stored in firebase, but my problem is that when a user adds a product, the list automatically refreshes, since it is realdatatime. The example code:</p>
  
  <pre><code>  new Flexible(
  child: new FirebaseAnimatedList(
    key: new ValueKey&lt;bool&gt;(_anchorToBottom),
    query: _messagesRef,
    reverse: _anchorToBottom,
    sort: _anchorToBottom
        ? (DataSnapshot a, DataSnapshot b) =&gt; b.key.compareTo(a.key)
        : null,
    itemBuilder: (BuildContext context, DataSnapshot snapshot,
        Animation&lt;double&gt; animation, int index) {
      return new SizeTransition(
        sizeFactor: animation,
        child: new Text("$index: ${snapshot.value.toString()}"),
      );
    },
  ),
  </code></pre>
  
  <p>),</p>
  
  <p>In the code i use FirebaseAnimatedList() to load a query from firebase, it works perfectly, but when many products are added in a short time, for the user it would be very annoying.
  I would like the user to refresh this manually.</p>
  
  <p>I've seen that the <a href="https://pub.dartlang.org/documentation/firebase_database/latest/ui_firebase_list/ui_firebase_list-library.html" rel="nofollow noreferrer">firebase_list</a> library exists, but I can not find any example of how to use it and I do not know if it would be the solution to the problem.</p>
  
  <p>Thanks for any help or suggestions.</p>