September 2019
Beginner
512 pages
12h 52m
English
We use Firestore through the Firestore class from the cloud_firestore Dart library. In initState() function of the FavorsPageState, we add a call to watchFavorsCollection().
In watchFavorsCollection(), we start loading favors from Firebase as shown here:
// part of favors_page.dart watchFavorsCollectionclass FavorsPageState extends State<FavorsPage> { @override void initState() { super.initState(); ... pendingAnswerFavors = List(); acceptedFavors = List(); completedFavors = List(); ...Read now
Unlock full access