Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Pro subscription. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it’s simply the best investment you can make in your development career.

Add Data in a Firestore Collection Pro

This video was last updated on Aug 30 2022

Before using a Firestore database you need to create it. In this lesson you’ll see how to create a new Firestore database and add it to your app.


Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a Professional subscription.

Before using a Firestore database you need to create one. So, let’s get back to the Firebase console,

flutter pub get cloud_firestore. 
import 'package:cloud_firestore/cloud_firestore.dart'; 
late FirebaseFirestore firestore; 
late CollectionReference activities; 

FirebaseHelper() { 
    firestore = FirebaseFirestore.instance; 
    activities = firestore.collection('activities');