abhay1205 / flutter-login

Flutter app for authentication with Google and custom Email

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter app for authentication

Implementing GoogleSignIn and custom Email SignIn and SignUp using Firebase

Getting Started with prerequisites

  1. Migrate the app to AndroidX from android.support libraries Or create project with flutter create --androidx project_name
  2. Add the following dependencies to your pubspec.yaml firebase_auth, google_sign_in and flutter_auth_buttons(optional)
  3. Go to Firebase website, create an account
  4. Create project in the Firebase Console and follow the steps shown there
  5. Download the JSON file adn paste it in your app_name/android/app folder
  6. Do the changes in project-level and app-level build.gradle file
  7. sync the changes in gradle files using an IDE (example-AndroidStudio)
  8. For Google sign in you need to add your sha1 fingerprint to your app in Firebase Console / Project Setting

Note

  1. Do not skip any steps
  2. Must know the basic of Object-Oriented-Programming
  3. Clear your queries on StackOverFlow

Author