This app created in Flutter is a proof-of-concept demonstrating how Cloud Firestore can be used to create a payment transactions application.
Firebase is for authentication, and Firestore watch listeners (snapshot listeners) are used to listen for updates to the relevant user document as well as transaction documents to facilitate live UI updates.
balanceCents
: number (int)email
: stringlastTxId
: stringuid
: string (Firebase auth uid)
amountCents
: number (int)fromUid
: string (Firebase auth uid)fromUsername
: stringtimestamp
: timestamptoUid
: string (Firebase auth uid)toUsername
: string
The users
collection and transactions
collection are interdependent
for committing balance transfers.
- Flutter
- Dart
- Firebase SDK
- Cloud Firestore SDK