GithubHelp home page GithubHelp logo

tomjerry12345 / firebase_utilitas Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 14 KB

This package is to simplify firebase commands: crud firestore, firebase storage for uploading files, firebase auth like sign in method, or register and others method auth

Home Page: https://pub.dev/packages/firebase_utilitas

License: MIT License

Dart 100.00%
firebase-utils flutter-library

firebase_utilitas's Introduction

Features

In your pubspec.yaml

dependencies:
  firebase_utilitas: ^latest-version

Usage

calling first class

final fs = FirebaseUtilitas();

Firestore

add

await fs.addDataCollection("collection_name", {
"name": "ucup",
"address": "makassar"
});

get data all future

await fs.getDataCollection("collection_name");

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(),
                ],
              );

update data

await fs.updateDataAllDoc("collection_name", "id", {
"name": "shamil",
"address": "gowa"
});

delete data

await fs.deleteDoc("collection_name", "id");

Firebase Auth

register with email and password

await fs.registerWithEmailAndPassword("email", "password");

sign in with email and password

await fs.signInWithEmailAndPassword("email", "password");

sign in with email and password

await fs.resetPassword("email");

firebase_utilitas's People

Contributors

tomjerry12345 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.