firebase_utilitas

Last updated:

0 purchases

firebase_utilitas Image
firebase_utilitas Images
Add to Cart

Description:

firebase utilitas

Features #
In your pubspec.yaml
dependencies:
firebase_utilitas: ^latest-version
copied to clipboard
Usage #
calling first class
final fs = FirebaseUtilitas();
copied to clipboard
Firestore #
add #
await fs.addDataCollection("collection_name", {
"name": "ucup",
"address": "makassar"
});
copied to clipboard
get data all future #
await fs.getDataCollection("collection_name");
copied to clipboard
get data all stream #
StreamBuilder<QuerySnapshot<Map<String, dynamic>>>(
stream: fs.getDataStreamCollection("collection_name"),
builder: (context, snapshot) {
final data = snapshot.data!.docs;
ListView.builder(
shrinkWrap: true,
itemCount: data.length,
itemBuilder: (BuildContext context, int index) {
return Column(
children: [
ListTile(
title: Text(data[index]["name"])),
Divider(),
],
);
copied to clipboard
update data #
await fs.updateDataAllDoc("collection_name", "id", {
"name": "shamil",
"address": "gowa"
});
copied to clipboard
delete data #
await fs.deleteDoc("collection_name", "id");
copied to clipboard
Firebase Auth #
register with email and password #
await fs.registerWithEmailAndPassword("email", "password");
copied to clipboard
sign in with email and password #
await fs.signInWithEmailAndPassword("email", "password");
copied to clipboard
sign in with email and password #
await fs.resetPassword("email");
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.