Skip to content
pubscout

firedart

0.9.8, released 3 years ago by cachapa.net

Dart-native client for Firebase Auth and Firestore without native SDKs.

$ flutter pub add firedart
Source repository

What it does

Provides Email/Password, anonymous and custom token authentication and basic Firestore CRUD operations. Works in pure Dart environments and Flutter on all platforms.

AI-written summary of version 0.9.8, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need Firebase Auth or Firestore in a pure‑Dart or non‑mobile environment
  • You want to avoid native Firebase SDKs and their platform setup

Skip it when

  • You require full Firestore query support (filters, ordering, etc.)
  • You need automatic token persistence or secure storage out of the box

Strengths

  • Runs everywhere Dart runs, no native plugins
  • Small dependency footprint
  • Supports token stores via custom implementations

Weaknesses

  • Limited Firestore query capabilities
  • No built‑in secure token storage
  • Streams are not auto‑recovered

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
4
import 'package:firedart/firedart.dart';

Future<void> main() async {
  FirebaseAuth.initialize('YOUR_API_KEY', await HiveStore.create());
  await FirebaseAuth.instance.signIn('email@example.com', 'password');
  var user = await FirebaseAuth.instance.getUser();
  print(user.uid);

  Firestore.initialize('YOUR_PROJECT_ID');
  var users = await Firestore.instance.collection('users').get();
  print(users);
}

Alternatives

Packages that do the same job and could replace firedart.

Works with

Packages commonly used together with firedart: ones it builds on, ones built on it, and its own family.