Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Dart interface to Firestore - with API as in https://firebase.google.com/docs/firestore/quickstart?

This Firestore document

https://firebase.google.com/docs/firestore/quickstart

Shows samples of 10+ languages but not Dart.

I found, there is a

https://pub.dev/packages/cloud_firestore

which appears to be a Flutter packageinterfacing Firestore. Two questions:

  1. Can the package in https://pub.dev/packages/cloud_firestore be used from server side Dart, or does in depend on something in Flutter?

  2. Is it's API equivalent to that described in https://firebase.google.com/docs/firestore/quickstart

like image 483
mzimmermann Avatar asked Dec 03 '25 10:12

mzimmermann


1 Answers

There are two main plugins that allow you to access Firestore from Dart code:

  1. The FlutterFire plugin. Use this plugin if you're targeting iOS or Android with your Flutter app, as it is a wrapper around Firebase's native SDKs for those platforms.
  2. The firebase-dart plugin. Use this plugin if you're targeting Web with your Flutter app.

There are no plugins that are more official than these two, as they are part of the Flutter and Firebase organizations respectively.

like image 148
Frank van Puffelen Avatar answered Dec 05 '25 00:12

Frank van Puffelen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!