fireverse 0.0.12 copy "fireverse: ^0.0.12" to clipboard
fireverse: ^0.0.12 copied to clipboard

Multi platform firebase plugin.

Fireverse #

pub package

This package is made to use firebase for all Platforms.

As we know, currently the official packages for firebase do not yet support the windows-desktop version.

That's the reason, I made this package.

Basically, this package is a combination of FireDart and the official Firebase library.

TODO #

Firebase Auth

  • ✅ Email Sign In
  • ✅ Anonymous Sign In
  • ❌ Google Login
  • ✅ Register
  • ✅ Reset Password

Firestore

  • ✅ .snapshot
  • ✅ .get
  • ✅ .get (where) (windows)
  • ✅ .get (where) (android/ios)
  • ✅ .get (orderBy) (windows)
  • ✅ .get (orderBy) (android/ios)
  • ✅ .add
  • ✅ .update
  • ✅ .delete
  • ✅ .deleteAll

Utility

  • ❌ Timestamp

Firebase Messaging


Documentation #


Initialize

await Fire.initialize(
  apiKey: apiKey,
  projectId: projectId,
  appId: appId,
  messagingSenderId: messagingSenderId,
);

Sign In

Fire.signIn(
  email: "demo@codekaze.com",
  password: "123456",
);

Sign Out

await Fire.signOut();

Firestore Add

await Fire.add(
  collectionName: "product",
  value: {
    "product_name": "GTX Mouse",
    "price": 12500,
  },
);

Firestore Update

await Fire.update(
  collectionName: "product",
  docId: "B7NUBHGZJd7xNlxoYtsa",
  value: {
    "product_name": "GTX Mouse",
    "price": 12500,
  },
);

Firestore Delete

await Fire.delete(
  collectionName: "product",
  docId: "B7NUBHGZJd7xNlxoYtsa",
);

Firestore Delete All

await Fire.deleteAll(
  collectionName: "product",
);

Firestore Snapshot

await Fire.snapshot(
  collectionName: "product",
);

Firestore Get

await Fire.get(
  collectionName: "product",
);

Firestore Get - Order By

await Fire.get(
  collectionName: "product",
  orderBy: FireOrder(
    field: "created_at",
  ),
);

Firestore Get - Where & Order By

await Fire.get(
  collectionName: "product",
  where: [
    FireWhereField(
      field: "product_name",
      isEqualTo: "GTX Mouse",
    ),
  ],
  orderBy: FireOrder(
    field: "created_at",
  ),
);

Firestore Get Document

var getRes = await Fire.get(
  collectionName: "product/tD1Znfqjwvf8HwciFhY0v1NS87F3",
);
4
likes
115
points
81
downloads

Publisher

unverified uploader

Weekly Downloads

Multi platform firebase plugin.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

cloud_firestore, firebase_auth, firebase_core, firebase_messaging, fixnum, google_sign_in, grpc, http, protobuf

More

Packages that depend on fireverse