Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

google sign in flutter

flutter google sign in using firebase.

flutter 1.7 updates

with the introduction of flutter 1.7, the most frustrating thing fixing andriodx incompatibilities has been taken care of. now, you can just create a new project using the --androidx flag to ensure the generated project targets the new support library.

firebase changes

now, you need to fill the oauth consent form in order to use firebase in your app, otherwise your app will just crash. so, make sure you checkout my medium article.

using this app

if you want to download and use this app, then you have to complete the following steps:

step 1: generate the sha-1

use the following command to generate sha-1:

keytool -list -v 
-alias androiddebugkey -keystore ~/.android/debug.keystore

step 2: complete the firebase setup

first of all, complete the whole firebase setup for both android and ios. you will get two files while doing the setup, one for each platform. you have to place the google-services.json & googleservice-info.plist files in the respective directory of each platform. for more info, check out my medium article.

note: use the sha-1 generated from your system

step 3: completing the ios integration

for the ios part, you have to do one more step. you will find a todo in info.plist file, just complete that.

step 4: run the app

now, you can run the app on your device using the command:

flutter run

screenshots

google sign in

plugins

the plugins used in this project are:

  1. “firebase_auth”.
  2. “google_sign_in”.

add this to your package’s pubspec.yaml file to use firebase & google sign in:

dependencies:
  firebase_auth: ^0.15.4
  google_sign_in: ^4.1.1

import using:

import 'package:firebase_auth/firebase_auth.dart';
import 'package:google_sign_in/google_sign_in.dart';

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.