Code Monkey home page Code Monkey logo

flutter-firebase-auth's Introduction

flutter-firebase-auth

sample demo authentication flow flutter with firebase sumber

Getting Started

pada kali ini kita daftarkan dahulu aplikasi untuk bisa akses pada firebase

contoh : com.example.flutter_firebase_auth

1. Firebase Configuration

Untuk mengaktifkan service firebase pada aplikasi, perlu menambahkan plugin google ke dalam file gradle

android/build.gradle

dependencies {
    // Add this line
    classpath 'com.google.gms:google-services:4.3.5'

android/app/build.gradle

// Add this line
apply plugin: 'com.google.gms.google-services'

dependencies {
    // Add this line
    implementation platform('com.google.firebase:firebase-bom:27.1.0')
    implementation 'com.google.firebase:firebase-analytics'

kemudian jalankan

flutter packages get

2. Install

pubspec.yaml

dependencies:
  firebase_core: ^0.7.0
  firebase_auth: ^0.20.0+1
  google_sign_in: 4.0.0

kemudian jalankan

flutter pub get

3. Directory

❏ lib
    ❏ res
        ❏ custom_colors.dart
    ❏ screens
        ❏ sign_in_screen.dart
        ❏ user_info_screen.dart
    ❏ utils
        ❏ authentication.dart
    ❏ widgets
        ❏ google_sign_in_button.dart
    ❏ main.dart
❏ assets
    ❏ firebase_logo.png
    ❏ google_logo.png

4. Note

Masih terkendala saat sign google pada firebase dikarenakan harus mendaftarkan keystore ke dalam firebase sumber berupa SHA-1 certificate fingerprint

signinscreen

googleauth

flutter-firebase-auth's People

Contributors

maulana20 avatar maulanaiij avatar

Watchers

 avatar  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.