No video

[Flutter] Firebase Authentication Using Riverpod

  Рет қаралды 10,659

Watery Desert

Watery Desert

Күн бұрын

Пікірлер: 50
@NailingDSA
@NailingDSA Жыл бұрын
This was an aweosme learning experience. You are a good teacher. You have put a lot of time and efforts in it. Folder structure, namings, state managements and most UI, JUST GREAT.
@WateryDesert
@WateryDesert Жыл бұрын
Yeah took me months to complete. You can see the date at the top right corner : D. But I am happy it is helpful for many people in the end.
@victoradepoju5510
@victoradepoju5510 2 жыл бұрын
Man, I rarely comment on youtube videos but I have to say this is great quality. I'm not even half way through. Subscribed and turned on notification!
@AzamKhan-bb7xg
@AzamKhan-bb7xg Жыл бұрын
this guy is awesome the way he explains everything oh my GOD love you man
@sunkwak6255
@sunkwak6255 Жыл бұрын
Wow!!! this is exactly what i want!!
@americanonobrasil2128
@americanonobrasil2128 Жыл бұрын
Amazing. Just become a patron. Looking forward to chatting with you in the discord!
@orvildsilva6577
@orvildsilva6577 4 ай бұрын
Great video!! very informative
@deadlinked
@deadlinked Жыл бұрын
Great explanation and great code. Congrats. I wish you much success in your life. Just downloaded the code on your Patreon, money well spent! 🙌 congrats
@WateryDesert
@WateryDesert Жыл бұрын
Thank you very much 😊
@mohammedburahaba8710
@mohammedburahaba8710 Жыл бұрын
I'm newbe for flutter and this such advance but clean code and more readable thank you very much.
@leolyo7
@leolyo7 11 ай бұрын
Very nice and neat tutorial!
@mattfrowe7697
@mattfrowe7697 2 жыл бұрын
This is awesome! Thanks so much for such a detailed example.
@adttwo
@adttwo Жыл бұрын
This is a really great tutorial - fantastic example of separation of concerns and building small, efficient widgets to compose a larger UI. I thought the Firebase Authentication section was a little rushed (hard to believe, given how long this tutorial is), and it was a little hard to follow on my first watch. I'm curious if you might be able to put together a short tutorial on building a Master-Detail app using Firebase (i.e. show a list of items, tap an item to open detail screen for editing, save and return to list, tap FAB to add a new item, etc.)? This is a common pattern among mobile apps and there aren't many tutorials that show how to construct one from start to finish.
@WateryDesert
@WateryDesert Жыл бұрын
Thanks for your valuable feedback I appreciate such feedback it helps me to improve my content. I will keep that in mind and make shorter details and more specific tutorials. I will make a tutorial on cloud firestore CRUD operation. Please give me some time to prepare such a video.
@adttwo
@adttwo Жыл бұрын
@@WateryDesert That's great! I'm actually using Realtime Database (not Cloud Firestore), but I can probably figure out the differences. Thanks!
@naxcall
@naxcall Жыл бұрын
great architecture, subs
@ilyadistergoft7261
@ilyadistergoft7261 Жыл бұрын
Ty bro, Great job
@yusufumar6738
@yusufumar6738 Жыл бұрын
Wow! Everything about this tutorial is amazing, man really cooked something amazing, I can't wait to connect with you on Discord. Thanks for creating this amazing tutorial. 🙌✌✌
@TrikNgonlen
@TrikNgonlen 2 жыл бұрын
AWESOME!
@saie8186
@saie8186 2 жыл бұрын
Great tutorial
@bagusulinuha941
@bagusulinuha941 2 ай бұрын
wow very good video, can you add multi-role users?
@WateryDesert
@WateryDesert 2 ай бұрын
For anything bit complex we should use SQL, I have a plan making some videos.
@sherifmoataz7282
@sherifmoataz7282 Жыл бұрын
Hello. First thank you for this amazing tutorial. However, while the forgot password functionality works perfectly and the google sign in, the sign in and sign up do not read the text fields for password and email, resulting in a constant empty error and the button not being clickable
@WateryDesert
@WateryDesert Жыл бұрын
I don't have such issue. Have you tried to download the source code?
@sherifmoataz7282
@sherifmoataz7282 Жыл бұрын
@@WateryDesert Unfortunately I am a student who cannot afford the patreon fees. I would love to support you but unfortunately that is not possible for me. If there is any other way you can assist i’d be very grateful
@WateryDesert
@WateryDesert Жыл бұрын
@@sherifmoataz7282 Source code link is in the description. And it's free to download.
@KhalilELISMAILI
@KhalilELISMAILI 2 жыл бұрын
Really nice job ! But in any app, you have more user data to handle than what Firebase Authentication can store (first name, last name, date of birth, city, country....). How would you combine this with saving/getting user profile data to/from Firestore and handle realtime changes with Riverpod ? It would be very nice if you have any examples to show :)
@WateryDesert
@WateryDesert 2 жыл бұрын
Firebase Authentication stores few metadata about the user like email, password, userId, created and signIn date, etc. You can few user data using client side sdk like displayName, email, password etc. Here is a full list of available methods. pub.dev/documentation/firebase_auth/latest/firebase_auth/User-class.html#instance-methods And here is a code snippet to change the user email. ⬇️ Future changeEmail( {required String email, required String password, required String newEmail}) async { try { final userCredential = await _firebaseAuth.signInWithEmailAndPassword( email: email, password: password); final user = userCredential.user; if (user != null) { await user.updateEmail(newEmail); /// throw exception here } } catch (e) { print(e); } } Once this succeeds you can immediately call `signOut` method like this `_firebaseAuth.signOut()`. And since our app is already listening to a stream it will sign Out the user. Everything will be in realtime. Firebase Authentication doesn't store more information like you mentioned, first name, last name, date of birth, city, country, etc. For that you need some database.
@KhalilELISMAILI
@KhalilELISMAILI 2 жыл бұрын
@@WateryDesert Thanks for your reply. But I'm actually looking for storing and getting more user data from Firestore database (i.e. city, country, global game score, etc...). What I want is that on user login : - Request Firebase Authentication to sign in the user and get his uid (this is what you did in the video) - Request Firestore database with the uid to get the additional user data - Store it all in the same user object in Riverpod to display it in the home page + profile page Would you make this in the same package you created for auth repository, or create a separate package with repository for Firestore data and keep the auth user and db user data separated ? Thanks again
@WateryDesert
@WateryDesert 2 жыл бұрын
yes, must create a separate repository to handle users collection. And also separate controller. Once the user `sign in` grab the userId. then query more data from `users` collection. Make sure cloud firestore cost you by read-write count.
@AzamKhan-bb7xg
@AzamKhan-bb7xg Жыл бұрын
i am getting error at FormzStatus status; variable at 1:00:13 imported the package anything but no such variable is this variable is updated now??
@WateryDesert
@WateryDesert Жыл бұрын
I am busy right now I can't look at your issue. Have you tried to download the source and run?
@AzamKhan-bb7xg
@AzamKhan-bb7xg Жыл бұрын
@WateryDesert yes i have downloaded but that variable is now changed in the package please
@WateryDesert
@WateryDesert Жыл бұрын
I just tested and it's working I don't see any error.
@saie8186
@saie8186 2 жыл бұрын
Undefined name 'DefaultFirebaseOptions'. when i cloned the project,I am getting this error
@WateryDesert
@WateryDesert 2 жыл бұрын
you have to generate firebase_options.dart file. Here you can see 1:32:01
@AzamKhan-bb7xg
@AzamKhan-bb7xg Жыл бұрын
why did you divided the height of 160 by 209 what is 209 value i am stuck there
@WateryDesert
@WateryDesert Жыл бұрын
Where? Add the timestamp.
@AzamKhan-bb7xg
@AzamKhan-bb7xg Жыл бұрын
48:22 i want to make the figma design in android which frame i will select?
@WateryDesert
@WateryDesert Жыл бұрын
​@@AzamKhan-bb7xg That's the total height of the shape. I explained this in detail in the video but I removed that part from this video. Otherwise, this video would have been even longer. Basically, we need to get the position factor to draw the shape on any screen. Here is some explanation 43:05 if you still don't understand let me know I will make video for that.
@AzamKhan-bb7xg
@AzamKhan-bb7xg Жыл бұрын
@@WateryDesert thank you very much and i am using pixel 4 emulator and you are using iphone 13 emulator so the height here is different can you please tell me which frame in figma i should use for pixel 4 emulator because the android large and android small frame didn't work for me. and it would be very nice to make a full video on it because you didn't take same values of height in fifth and sixth points please thanks Wassalam
@mohamdjamal6266
@mohamdjamal6266 2 жыл бұрын
Nice why not creating Zoom course?
@WateryDesert
@WateryDesert 2 жыл бұрын
Zoom? You mean build that video calling app?
@bashiruibrahim8443
@bashiruibrahim8443 Жыл бұрын
Wslm
@WateryDesert
@WateryDesert Жыл бұрын
what do you mean?
@azeemhussain1109
@azeemhussain1109 Жыл бұрын
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 44 М.
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 27 МЛН
This Dumbbell Is Impossible To Lift!
01:00
Stokes Twins
Рет қаралды 36 МЛН
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 4 МЛН
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 50 МЛН
Flutter Firebase Authentication [2024] The Cleanest Way
23:32
HeyFlutter․com
Рет қаралды 146 М.
React Native vs Flutter - Which should you use?
22:31
Simon Grimm
Рет қаралды 25 М.
📱Reset Password • Firebase x Flutter Tutorial ♡
13:09
Mitch Koko
Рет қаралды 49 М.
🔒📱 Email Login & Logout • Flutter Auth Tutorial ♡
16:00
What's new in Flutter 3.24 | Flutter 2024 Updates #flutter
3:43
Runtime Snippets
Рет қаралды 2,3 М.
Building a Mobile App in 2024: The BEST Technologies
13:31
Dan Ilies
Рет қаралды 17 М.
Flutter Riverpod EASY Tutorial
8:16
Flutter Mapp
Рет қаралды 22 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 47 М.
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 27 МЛН