Storing Data into Firebase Cloud Firestore via Flutter - Roman Just Codes (S1E14)

Опубликовано: 08 Октябрь 2024
на канале: Roman Just Codes
3,711
79

For this episode I’ll be covering the storing of shopping cart items associated with the logged in user back to Cloud Firestore, as well as adding the ability to add and remove shopping cart items while always being in sync with Firebase.

Previous Episode
   • Pulling Data from Firebase Cloud Fire...  

GitHub Repo for this project:
https://github.com/romanejaquez/orill...

Episode on Firebase Authentication
   • Signing In with a Google Account in F...  

Cloud Firestore Package
https://pub.dev/packages/cloud_firestore

00:00 - Intro
02:51 - Workflow Overview
03:29 - Editing the LoginUserModel and LoginService
04:39 - CRUD operations on the CartService against Cloud Firestore
04:53 - Loading Cart Items from Cloud Firestore (creation)
07:43 - Adding Items to Cloud Firestore
10:27 - Removing Items from Cloud Firestore
12:22 - Removing All Items from a Cloud Firestore Field
14:11 - Loading Cart Items upfront from Cloud Firestore (invocation)
16:09 - Preventing Anonymous users from accessing logged-in user actions
18:33 - Create widget for non-logged-in users
20:28 - Edit items in Cloud Firestore (increment)
22:15 - Edit Items in Cloud Firestore (decrement)
25:00 - Next Steps


#Flutter​​ #Firebase #GoogleSignIn #FirebaseAuth #Authentication #Dart​​ #RomanJustCodes​​ #CrossPlatform​​ #Android​​ #IOS​​ #Web​​ #Desktop​ #Widgets​ #CloudFirestore #Firestore