Skip to content

Firestore library for Flutter web and mobile

License

Notifications You must be signed in to change notification settings

ergonlabs/firestore_all

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firestore_all

Plugin that wraps Firestore from firebase and cloud_firestore packages and expose them as a single API.

Getting Started

Shared

To get the Firestore instance use setupFirestore function.

var firestore = setupFirestore(
  webApiKey: 'apiKey',
  webAuthDomain: 'authDomain',
  webDatabaseUrl: 'databaseUrl',
  webProjectId: 'projectId',
  webStorageBucket: 'storageBucket',
);

Web

Add following code to index.html in web directory.

<script src="https://www.gstatic.com/firebasejs/5.10.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.10.1/firebase-firestore.js"></script>

TODO

  • Wrap Firestore from firebase package (for Flutter web)
  • Wrap Firestore from cloud_firestore (for Flutter Android/iOS)
  • Test: Check if it's working on web
    • snapshot streams
    • add, update, edit
    • get document
  • Test: Check if it's working on Android
  • Test: Check if it's working on iOS
  • Integrate with Firebase Auth

About

Firestore library for Flutter web and mobile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 95.4%
  • Swift 1.6%
  • HTML 1.5%
  • Kotlin 1.4%
  • Objective-C 0.1%