Flutter Tutorial For Beginners #9 - Adding Google Authentication with Firebase

preview_player
Показать описание
This flutter tutorial covers how to add google authentication to a flutter application. We will create a flutter firebase app that allows for google sign in. You will be able to sign into your flutter app using google auth, this will be done using firebase and some flutter packages.

firebase_auth: ^0.14.0+5
google_sign_in: ^4.4.4

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾

💰 Courses & Merch 💰

🔗 Social Medias 🔗

🎬 My YouTube Gear 🎬

🎤 XLR Microphone (Rode NT1): Not available

◾ 💸 Donations 💸 ◾
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

⭐ Tags ⭐
- Tech With Tim
- Flutter
- Flutter Firebase Auth
- Flutter Firebase Authentication
- Firebase Flutter Google Sign In
- Google Sign In Flutter
- Flutter Google Sign In
- Flutter Google Auth

⭐ Hashtags ⭐
#Dart #Flutter
Рекомендации по теме
Комментарии
Автор

A quick note: I'm using the following dependencies in pubspec.yaml:
firebase_database: ^4.3.0
firebase_core: "^0.5.0+1"
firebase_auth: "^0.18.1+2"
google_sign_in: ^4.5.6
I think several names were changed when the dependencies updated. At 11:44, the name "AuthResult" was changed into "UserCredential".
Hope this would save you a bit of time :)

madeinheaven
Автор

Hi Tim. Can you recreate this video? I think there's some changes in Dart, Flutter and other libraries

ramtinprg
Автор

Hello Tim. Great vid.
Did you come across this error:
Exception has occurred.
PlatformException (PlatformException(sign_in_failed, 10:, null))
It occured when I tried to sign in. I've followed everything though.

Edit: Resolved it.
1: The package names in Firebase Console and all of the Manifest files have to be the same.
2: Added a couple keys in Project Settings by running the command './gradlew signingReport' in Terminal inside android.

PradHolla
Автор

every time a login is performed, the void click function throws an error saying "The getter 'displayName' was called on null". The code when hot reloded after some time moves to the home page as expected. If you are facing the same error, make the change the function click as follows:-
void click() async {
await => {this.user = user});

Navigator.push(context,
MaterialPageRoute(builder: (context) =>
}

sahilvartak
Автор

Google updates with null safety have made this video useless. Trying to fix Tim's code is like trying to slay a hydra, solve one problem and two more pops up. Can someone please post a newer version that reflects the new dependency releases?

ianrajkumar
Автор

Hi, what book did you use in your first year of computer science for the “Introduction to computing 1“ course ?

lepetitjunior
Автор

Great job Tim!! Ty so much and always give u 5 stars on Prodeus. :)))

doctorbroker
Автор

Can you teach us how to backend flutter with python or other languages?

aneeshjosyula
Автор

For the ones who couldn't find "shape " parameter in Outline Button it's deprecated and it became OutlinedButton.

kemalcetindag
Автор

3:08 Is this happening to Flutter version 1.20???
Just wondering.

yourasa
Автор

Tim, i love you... I wish you all the best in your life. Thanks a lot for all your videos.

miguelnuno
Автор

I really enjoy this serie of videos, thanks for adding Firebase ASAP.

melinaurruchua
Автор

This code doesn't work with the new null safe dependencies.

sandwichtube
Автор

Try using didDependenciesChange instead of initState. And if you need any other help you can reach out 😊

tadaspetra
Автор

are firebase_auth and agoogle_sign_in the same for everyone or what? You just spawned them there first minute. You didn.t show where you copied them from

jameshowlett
Автор

"OutlineButton" has been deprecated.

aravindma
Автор

First. Nice vid. What happened to the podcast? Also I like the new editing

kiank
Автор

if we use google authenticator will the firebase charge me for each login with phone number or its free?

SurekhaNarendar
Автор

i have this error also i added json file Error: [core/not-initialized] Firebase has not been correctly initialized. Have you added the Firebase import scripts to your index.html file?
please help

ganeshhurgule
Автор

Flutter Firebase Google Sign In not working. Stops after account selection what shhould i do reply help me

jumirgosain