Firebase google sign-in and Flutter

Firebase google sign-in and Flutter

aseemwangoo 10 comments
Flutter

True sign of intelligence is imagination not knowledge….

Long time since my last post Steppers and Forms in Flutter, I was unable to find any interesting topic which would get me out of Cryosleep.

Surfing, searching here and there, until I found out about Firebase. A whole lot of articles are present on the internet regarding Firebase. What possibly I could think of new………..Hmmmmmm

I decided to integrate google sign in with Firebase using Flutter. (Surprise awaits)..

SignIn / Out with Google

SignIn / Out with Google

Getting started is simple, follow the steps:

  1. Go to https://firebase.google.com/
  2. Click Get started
  3. Register your app
  4. A small advice, always fill the SHA certficate fingerprint, even though it says optional
  5. SHA-1

    SHA-1

    Go to

    Firebase Authentication

    Firebase Authentication

  6. Click authentication and enable the google sign in (as we are trying for google first)….

All set up, now programming part..

On click of Sign in with Google, the following function is called :

Sign In part

Sign In part

On click of Sign out,

Sign out part

Sign out part

Till, here I did nothing special. 

What’s new I did was to display all the details which came from firebase (like a boss )……

Output from firebase

Output from firebase

_data has 8 fields and providerData is an array…

_data

_data

ProviderData

ProviderData

Video demonstration :

For complete source code, visit

https://github.com/AseemWangoo/flutter_programs/blob/master/GoogleSignIn.zip

P.S………….

10 Comments

ameliehenderson

June 10, 2018 at 7:35 pm

Perfect work you have done, this web site is really cool with excellent info.

 Reply

marinabroderick

June 11, 2018 at 9:12 am

I’m also writing to make you know what a beneficial discovery my cousin’s girl enjoyed going through your web site. She realized many details, which included how it is like to possess an amazing giving spirit to let other folks effortlessly have an understanding of specific problematic things. You undoubtedly did more than visitors’ desires. I appreciate you for offering these productive, trusted, explanatory and in addition fun tips on the topic to Emily.

 Reply

jennidilke377

June 11, 2018 at 9:23 am

Having read this I believed it was rather enlightening. I appreciate you spending some time and energy to put this content together. I once again find myself spending a lot of time both reading and leaving comments. But so what, it was still worth it!

 Reply

gerireinhardt

June 11, 2018 at 3:33 pm

You ought to take part in a contest for one of the most useful sites on the net. I will highly recommend this web site!

 Reply

reynafranki9314

June 11, 2018 at 6:54 pm

Wow, amazing blog structure! How long have you been blogging for? you make running a blog look easy. The whole look of your site is excellent, as well as the content![X-N-E-W-L-I-N-S-P-I-N-X]I simply could not go away your website before suggesting that I extremely enjoyed the usual information an individual supply on your visitors? Is gonna be again often to check up on new posts.

 Reply

dino880610578017

June 12, 2018 at 1:47 am

You have brought up a very wonderful points, thanks for the post.

 Reply

josephcavill47

June 12, 2018 at 12:36 pm

This design is wicked! You obviously know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Great job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!

 Reply

xcjesmeralda

June 14, 2018 at 11:17 am

Hello. impressive job. I did not anticipate this. This is a excellent story. Thanks!

 Reply

cedriccastro7

June 22, 2018 at 7:19 am

Hello my loved one! I wish to say that this article is awesome, nice written and come with approximately all important infos. I’d like to look more posts like this .

 Reply

darrellmclellan

July 4, 2018 at 2:18 am

What’s up, this weekend is good in favor of me, for the reason that this occasion i am reading this fantastic informative article here at my residence.

 Reply

Leave a Reply

%d bloggers like this: