Solution: Firebase Firestore
Explore the solutions to the Firebase for Flutter challenges.
We'll cover the following...
Solutions
Great job on completing all the steps in the previous challenge! Feel free to compare your code solutions with the solutions below.
name: todo_appdescription: A new Flutter project.publish_to: 'none' # Remove this line if you wish to publish to pub.devversion: 1.0.0+1environment:sdk: ">=2.16.2 <3.0.0"dependencies:flutter:sdk: flutterfirebase_core: ^2.15.0# SOLUTION-1cloud_firestore: ^4.8.4dev_dependencies:flutter_test:sdk: flutterflutter_lints: ^1.0.4flutter:uses-material-design: true
pubspec.yaml
Challenge 1: Add the cloud_firestore
package
First, we add the cloud_firestore
package to the application dependency in line 14 of the pubspec.yaml
file. ...