Flutter Web | Add Firebase Authentication and Google Sign in

  Рет қаралды 27,649

Fun with Flutter

Fun with Flutter

4 жыл бұрын

In this tutorial we will add Firebase Authentication and Google Sign in to a Flutter web application. Beginner friendly.
Written Tutorial: levelup.gitconnected.com/usin...
Relevant Links:
Source code: github.com/funwithflutter/tut...
Firebase Auth package: pub.dev/packages/firebase_auth
Google Sing in package: pub.dev/packages/google_sign_in
Firebase: firebase.google.com/

Пікірлер: 79
@Ruhan885
@Ruhan885 3 жыл бұрын
Wow. The attention to detail in this video is phenomenal and exactly what you need if you are if you are like me and get stuck on these little errors. Great video.
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
Awesome, thank you!
@Salehalanazi-7
@Salehalanazi-7 4 жыл бұрын
Absolutely love your content and your work. You're very knowledgeable and an excellent teacher. You're very inspiring sir.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Thanks for always being so nice! I really appreciate all of the feedback you give on the videos. It's great motivation for me.
@rreid2605
@rreid2605 4 жыл бұрын
Thanks for this, I've been trying to get this running for several weeks and following this video it now works. It's a great first step but what I really need (and I expect many others also) to is to authenticate using Microsoft, so if you could do that that would be even more great.
@rajayogan8884
@rajayogan8884 4 жыл бұрын
Great content as always. Thanks man !!
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Thanks Raja! We should maybe do a collab at some point if you want!
@thebaconbreadful
@thebaconbreadful 4 жыл бұрын
This Video really helped me and even though the video is a bit log, the structure is great and it's really easy to follow you. Maybe it's because you seem like a happy person :D I would really appreciate a video about providers, especially since I've struggled in the past using data from the User Provider to access data from another provider (using the uid to get access to user data and provide it globally).
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Thanks! And I'm glad it helped. I recently made a short video on Provider, and I'll be releasing another in the next couple of days that shows some more advanced usage (StreamProvider as well). After that I'll make more videos on general architecture, maybe do an example app that will help with your use case
@drewmartin2705
@drewmartin2705 4 жыл бұрын
Thank you so much for this video! I learned a ton.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
It's a pleasure!. Thanks for the message, I appreciate it.
@sachinmirji1098
@sachinmirji1098 4 жыл бұрын
Thank you so much for this. Loved the way you showed us.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Thanks for leaving a comment. I'm glad you you enjoyed it.
@simson9847
@simson9847 4 жыл бұрын
instagram: flutter_video
@nasuhikeskin
@nasuhikeskin 3 жыл бұрын
Thanks for the video, it is very helpful
@Just_JasonZA
@Just_JasonZA 3 жыл бұрын
I had my htm calls in the wrong place took me 3 hours to find your video to find out why I could my web app was failing. dankie MR
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
Jy is welkom
@christopherh7918
@christopherh7918 3 жыл бұрын
Great video. How would you also add a manual sign-in with email address and password, and a registration that syncs with firestore?
@francodagostino2143
@francodagostino2143 2 жыл бұрын
Thanks for the clear example👍
@FunwithFlutter
@FunwithFlutter 2 жыл бұрын
You’re welcome!
@yaseraslan6160
@yaseraslan6160 3 жыл бұрын
thank you for this , this is a graet
@jasonetherington6278
@jasonetherington6278 4 жыл бұрын
This was a very helpful video. I would like to learn more about provider.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Just released a video on the basics of provider. More to come
@aliakkawi4759
@aliakkawi4759 4 жыл бұрын
Hello Sir and thanks for the great tutorials. When i run my Web app on the computer chrome browser it works great, but when i run it on my Mobile chrome browser and perform Google Sign in, it is stuck on the Google Sign in screen and i have to dismiss it manually to return back to my App. How can i fix that? Thanks
@chrisodonnell86
@chrisodonnell86 3 жыл бұрын
Awesome vid!
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
Thanks mate
@aq6601
@aq6601 4 жыл бұрын
Great Video. Please do make a video on provider! Would love to learn it in a bit more detail as well.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
I already did! Check out my videos on the channel. I did three new videos on provider after uploading this video
@bdthombre
@bdthombre 4 жыл бұрын
Sorry for out of topic question. Video is great, full of info. But can you please tell which camera and mic setup you used for recording, clarity and voice is so clear...?
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Sure! I use a Blue Yeti microphone. Record the audio and screen capture in OBS - getting the perfect audio is not easy, you'll need to play around with a lot of the settings to get it where you want it, also depends on how noisy your recording environment is. You don't need an expensive microphone, though, a cheaper Lavier will do the job great and will probably be better at keeping unwanted noise out. The Blue Yeti picks up EVERYTHING. This video was the first video I used a camera, so I don't really know what I'm doing, but if you care, I'm using a Canon M5.
@arnoldpretorius
@arnoldpretorius 2 жыл бұрын
Are you from South Africa? Your accent sounds South African? Great video! Thanks!
@FunwithFlutter
@FunwithFlutter 2 жыл бұрын
I am !! 😀
@ahmadkhanahmadzkn
@ahmadkhanahmadzkn 4 жыл бұрын
Yes, I would like to learn more about provider architecture and different ways to use it.
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Will do!
@lucianoricardo598
@lucianoricardo598 3 жыл бұрын
I know I'm kinda off topic but does anybody know a good place to stream newly released movies online?
@jettanderson9828
@jettanderson9828 3 жыл бұрын
@Luciano Ricardo i watch on flixzone. You can find it by googling :)
@alejandroezequiel265
@alejandroezequiel265 3 жыл бұрын
@Jett Anderson Yea, have been watching on flixzone for since march myself :)
@lucianoricardo598
@lucianoricardo598 3 жыл бұрын
@Jett Anderson thank you, I signed up and it seems like they got a lot of movies there :D Appreciate it !
@RRits57
@RRits57 4 жыл бұрын
Good video, thanks
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
You're welcome
@robertwagner3780
@robertwagner3780 Жыл бұрын
I know this video is old, but have you tried to actually run this hosted on firebase? I am having issue with missing plugin exceptions like Auth#registerIdTokenListener and Auth#signInWIthEamilAndPasswrod. I am struggling with this.
@TheStroker986
@TheStroker986 3 жыл бұрын
Where did you get the logic at 5:59? Was that provided by firebase or did you make it?
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
I made that. You can find it in the GitHub repo
@taufiqtab77
@taufiqtab77 3 жыл бұрын
Thanks
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
No problem
@ajinkyax
@ajinkyax 4 жыл бұрын
subscribed :) you saved my ass
@dani0ble
@dani0ble 4 жыл бұрын
thank you, but i have problem if I open chrome and try login to google there is a message " This browser or application may not be secure"
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Is this happening on Localhost? Or on your domain
@dani0ble
@dani0ble 4 жыл бұрын
@@FunwithFlutter on localhost:5000
@aeggeska1
@aeggeska1 4 жыл бұрын
I get the following when using Google Sign In: "Couldn't sign you in This browser or app may not be secure. Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in. " What is the solution?
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Is this on Localhost, or on your domain. You need to configure Firebase to allow certain domains. Same with Google Sign in. By default it only allows Localhost 5000 if I remember correctly. I talk about it in the video (close to the end of the video)
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
I made a new package called Lit Firebase Auth to make Firebase sign in easier. If you want to check that out
@shahariarkabir4148
@shahariarkabir4148 3 жыл бұрын
This video is really helpful. Can you please Please show us facebook sing in for flutter web, android, and ios.
@vedantyogesh8519
@vedantyogesh8519 4 жыл бұрын
Whenever I try to enable auth in firebase and run the webapp, it says TypeError: Cannot read property 'app' of undefined. Can someone help?
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
I think the video shows that error. But it also shows what you should do. Make sure to include the Firebase JS SDK. Add the following to the top of the tag in the web/index.html file:
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
You're getting that error because the SDK is not initialized. Also make sure to initialize firebase in the index.html file. Take a look at the blog post for this video (link in the description), if you struggle.
@vedantyogesh8519
@vedantyogesh8519 4 жыл бұрын
@@FunwithFlutter Thank you so much mate. Love your videos.
@saagilkhan5854
@saagilkhan5854 4 жыл бұрын
For Flutter web should we know HTML,CSS and JavaScript??
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Only if you want to make your own plugins, or if you want to do something that is not supported by Flutter web. But under most circumstances, no. Only setup that you might need to do is in the index.html to include other scripts or whatever.
@robertom7577
@robertom7577 2 жыл бұрын
Can you make a video about how to create App Check token on flutter firebase app .Thanks Sir.
@prashantpandya5397
@prashantpandya5397 4 жыл бұрын
hello great work!!! will this work same for android app ?if not can you suggest me?
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Thanks man. All of the code will work the same, but you need to do the initialization for Android/iOS - which is different than for web. For example, in this video I modified the index.html to initialize the Firebase app. On Android/iOs you need to do other initializations. There are good instructions on the Firebase website - firebase.google.com/docs/android/setup
@prashantpandya5397
@prashantpandya5397 4 жыл бұрын
@@FunwithFlutter thanks man for help ❤️ and keep growing!!
@anasghazi6130
@anasghazi6130 3 ай бұрын
😢nothing is the same in firebase anymore
@waqasjavaid9274
@waqasjavaid9274 Жыл бұрын
28:30 so you are the last American there after Vietnam war?
@tutankmon7
@tutankmon7 2 жыл бұрын
Gracias, estuvo muy bien , pero fue una odisea seguirte porque yo hablo español hahah pero muy buen video tuve que usar traductor
@raven9965
@raven9965 4 жыл бұрын
provider , provider, provider please?
@FunwithFlutter
@FunwithFlutter 4 жыл бұрын
Yes, yes, yes.
@eightrice
@eightrice 3 жыл бұрын
In the firebase_auth_service file you have the type User, which is defined in both /models/user.dart and firebase_auth.dart Furthermore, no one gives a fuck that the microphone is covering your keyboard.
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
Take note that recently the FlutterFire plugins have had a lot of breaking changes. A lot of what is said in this video is based off of previous releases. If you want to follow this exactly then use the firebase versions I use in the vid. Otherwise I suggest you read the new documentation that the Flutter team has made for the new versions. Also please be mindful that I'm not obligated to you or anyone else to provide these resources. I'm doing it because I want to, and if I want to mention the fact that the microphone is blocking my keyboard then that's what I will do.
@eightrice
@eightrice 3 жыл бұрын
@@FunwithFlutter Thanks for the effort and don't let the worst of me get the best of you.
Improve your Flutter Apps performance with a RepaintBoundary
31:31
Fun with Flutter
Рет қаралды 14 М.
Unique sign in form built with Lit Firebase Auth and Flutter
1:15:53
Fun with Flutter
Рет қаралды 45 М.
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 54 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 37 МЛН
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 12 МЛН
Should you use Flutter for Web Apps?
8:25
Stefan Mischook
Рет қаралды 38 М.
Firebase web google log in - firebase authentication google sign in
9:58
Info Tech WAR for Coding
Рет қаралды 21 М.
🔒 Google Sign In in Flutter with Firebase - Step-by-Step Guide (2024) 🔥
17:04
7 Ways to Speed Up Your Flutter Webapps
22:51
Flutteristas
Рет қаралды 11 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 559 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 845 М.
Top 12 Flutter Tips & Tricks
9:32
Fireship
Рет қаралды 267 М.