Beginning FlutterFire

Aug 30 2022 · Dart 2.16, Flutter 3.0, Visual Studio Code 1.69

Part 3: Read & Write Data with the Cloud Firestore

09. Add Data in a Firestore Collection

Episode complete

Play next episode

About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 08. What's the Cloud Firestore? Next episode: 10. Create the Model Class

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

Take your career further with a Kodeco Personal Plan. 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.

Learn more Already a subscriber? Sign in.

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

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');