Loading data from Firestore with Flutter

Loading data from Firestore with Flutter

6 years ago
Anonymous $L9wC17otzH

https://flutterdoc.com/loading-data-from-firestore-with-flutter-c42c520f6ee5

In a recent side-project of mine I needed to perform some simple loading of data from an external data source. This was all data that I had collated myself so I decided to manually load it up into Firestore — in this post we’re going to quickly take a look at how we can hook up our Flutter application to load data from a Firestore datastore to display to our users. This post will hopefully act as both a guide to show you how to implement Firestore in your apps and also a way to show you how little work is involved to do so.

To be able to load data from Firestore you’ll first need a datastore — this is essentially a remote database. Data in this databases can be used for multiple purposes — maybe it is read-only data, or maybe you want users to be able to manipulate data within the database. The datastores are pretty flexible in what you can do with them, but for now we’re going to concentrate on just querying data from the datastore and loading it up into our application.