Login with Email and Password Firebase Flutter | Flutter Login Remember Me using Local Storage

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

Coding With T

Coding With T

Күн бұрын

Dive into the world of Flutter and Firebase with our comprehensive tutorial on implementing a secure login system using email and password authentication. In this tutorial, we'll not only guide you through the process of setting up Firebase authentication but also show you how to enhance user experience by implementing a "Remember Me" feature using Local Storage.
► Complete E-Commerce App Playlist : • Professional Flutter E...
🎊 E-COMMERCE APP
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🎁 DOWNLOAD SOURCE CODE: codingwitht.com/product/flutt...
❤️ FLUTTER E-COMMERCE APP PLAYLISTS
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Complete E-Commerce App : • Professional Flutter E...
► Section - 1 Configuration : • Professional Flutter P...
► Section - 2 Login App : • Professional Flutter P...
► Section - 3 eCommerce UI : • Flutter Complete Ecomm...
► Section - 4 Login Backend: • Flutter Firebase Cours...
► Section - 5 eCommerce Backend: • Flutter E-Commerce App...
❤️ SUBSCRIPTIONS
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Join Patreon to Access Premium Content: / membership
COURSES
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► FLUTTER CRASH COURSE • Flutter Crash Course f...
► LOGIN APP FIREBASE • Flutter Login App - UI...
🧑‍💻 RELATED VIDEOS
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Splash Screen Design: • Latest Flutter Splash ...
► Login Screen Design: • Login Page in Flutter ...
► Onboarding Screen Design: • Flutter Onboarding Scr...
► GetX Basics: • Flutter Firestore CRUD...
CHAPTERS
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
00:00 Introduction
00:12 Video Overview
01:04 Playlist Overview
01:25 Video Breakdown
04:36 Create Login Controller
07:57 Form Validation
10:15 Toggle Password (Show/Hide password)
12:13 Toggle Remember Me Checkbox and store Login credentials in Local Storage
13:04 Start Loader, Check Internet connectivity and check Form Validation
15:37 Trigger Email and Password Authentication
26:38 Result
18:05 Fetch data from local storage
FOLLOW US ON SOCIAL MEDIA
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
💻 Facebook | / codingwithtea
💻 Instagram | / coding_with_tea
Here's a detailed breakdown of what we'll cover:
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Creating a Robust Login Controller:
Begin by establishing a strong foundation with the development of a login controller, seamlessly integrating it with Firebase authentication to ensure a reliable user login experience.
Significance of Form Validation:
Delve into the critical aspect of form validation, understanding its role in crafting a secure and user-friendly login system that meets the highest standards.
Implementing a Password Toggle Feature:
Enhance user experience by implementing a password toggle feature, allowing users the flexibility to reveal or hide their passwords with ease.
Incorporating "Remember Me" Checkbox:
Explore the seamless integration of a "Remember Me" checkbox, providing users with the option to securely store login credentials in Local Storage for added convenience.
Optimizing User Experience:
Ensure a smooth and delightful user experience by implementing loaders, checking internet connectivity, and validating forms effectively.
Email and Password Authentication:
Navigate through the intricacies of triggering email and password authentication with Firebase, a crucial step in establishing a secure login system.
Fetching Data from Local Storage:
Learn the nuances of retrieving and utilizing stored login credentials from local storage, streamlining the login process for returning users.
Embark on this enlightening Flutter Firebase journey with us, elevating your skills to craft a seamless login experience for your Flutter applications. Don't forget to like, share, and subscribe for an ongoing stream of in-depth Flutter tutorials! 🔥 #Flutter #Firebase #MobileAppDevelopment #CodingTutorial #UserAuthentication #RememberMe

Пікірлер: 101
@abdullahelmadawy
@abdullahelmadawy 8 ай бұрын
Best series I have ever seen ❤
@CodingwithT
@CodingwithT 8 ай бұрын
Thank you 😀✌️
@techysparta9227
@techysparta9227 8 ай бұрын
Please do continue this series
@abhisheksitar
@abhisheksitar 3 ай бұрын
Excellent series!
@CodingwithT
@CodingwithT 3 ай бұрын
Thank you! Glad you enjoyed it!
@user-ij6fx1ez1l
@user-ij6fx1ez1l 8 ай бұрын
Best playlist for flutter
@CodingwithT
@CodingwithT 8 ай бұрын
Thank you 😊
@professionneljacques4210
@professionneljacques4210 2 ай бұрын
Thanks a lot ! Great work ! since One week i'm coding like you😆😆😆
@CodingwithT
@CodingwithT 2 ай бұрын
Glad to hear that! and Awesome job
@ShahzodBurhonov
@ShahzodBurhonov Ай бұрын
hello Tell the logout button in the settings class what to write
@adisbuljubasic5706
@adisbuljubasic5706 8 ай бұрын
MashAllah brother.. ❤ Will you maybe implement payment methods on the payment screen, maybe Stripe/PayPal?
@CodingwithT
@CodingwithT 8 ай бұрын
Yes I'm trying to add that too at the end.
@adisbuljubasic5706
@adisbuljubasic5706 8 ай бұрын
@@CodingwithT would help us all out I think.. at least one method we have on the payment screen 💖
@user-sp8vp1zz8f
@user-sp8vp1zz8f 8 ай бұрын
did you use userCredentials anywhere?
@CodingwithT
@CodingwithT 8 ай бұрын
Not yet but you can if you want.
@user-ps7wk1uj6l
@user-ps7wk1uj6l 8 ай бұрын
I got a feeling that next year by june, i will be a software engineer...😃
@CodingwithT
@CodingwithT 8 ай бұрын
Not by next year. At the end of this course 😜
@user-ps7wk1uj6l
@user-ps7wk1uj6l 8 ай бұрын
@@CodingwithT you got it right
@Suleiman-PC
@Suleiman-PC 8 ай бұрын
Exactly bro that how I feel 😜
@shahzaibmehmood65
@shahzaibmehmood65 3 ай бұрын
Hi you create the input decoration of the textfieldform how to use this in it?
@CodingwithT
@CodingwithT 3 ай бұрын
To use the custom input decoration in a TextField or TextFormField widget, you simply need to pass it as the value for the "decoration" property. If you have any further questions or need assistance, feel free to ask!
@shahzaibmehmood65
@shahzaibmehmood65 3 ай бұрын
Thanks
@wasifladla2084
@wasifladla2084 7 ай бұрын
Expected a volue of type String', but got one of type 'Null' I face this error
@CodingwithT
@CodingwithT 7 ай бұрын
It means a variable which is expected to receive a String but somehow you passed null to it. If it's being fetched from the Firestore you can add ?? ''; Next to the value and it means if the variable received null, assign an empty string to it.
@dilshanisenarathna8096
@dilshanisenarathna8096 7 ай бұрын
same here. Did you fix that?
@zisouh710
@zisouh710 4 ай бұрын
Bro how did you fix it please respond me
@yourparcel
@yourparcel 2 ай бұрын
❤love u brooh
@CodingwithT
@CodingwithT 2 ай бұрын
Love you too buddy ❤️
@HeaderTalk
@HeaderTalk 14 күн бұрын
After this tutorial if I am running my app in debug mode Sometimes it is showing white screen or sometimes Next button not working after second onboarding screen Please help
@CodingwithT
@CodingwithT 14 күн бұрын
Cannot say anything, need to check your code
@TuanNguyen-qc6pn
@TuanNguyen-qc6pn Ай бұрын
Can u help me with this, when i signup and i back to sign in, it get bug multi global key in widget tree, i dont know to fix it
@CodingwithT
@CodingwithT 17 күн бұрын
It is because you are using same global keys for two or more forms. Check it thoroughly and let me knowif it didn't solve your issue.
@DocendoDiscimus
@DocendoDiscimus 3 ай бұрын
Sir, android emulator works very well, but the Ios emulator ‘IconButton’ and ‘remember me’ part does not work, even the login button still redirects directly to the homepage. What could be the reason?
@CodingwithT
@CodingwithT 3 ай бұрын
Make sure the code is same and also debug it as there is no such specific thing for android and iOS.
@amanimakoi7651
@amanimakoi7651 2 ай бұрын
Excuse me Sir, I Face an issue whenever I use "onInit()" function to fetch user data from the local storage for REMEMBER ME, the error says 'type null is not a subtype of type String ' help me that Pleaseeee
@CodingwithT
@CodingwithT 2 ай бұрын
Nothing to worry about. Just add ?? ""; next to your both local variables. This error is saying that you are accessing null and assigning null to the String.
@AugustBonou
@AugustBonou 8 ай бұрын
please, how much can I get the complete code for?
@CodingwithT
@CodingwithT 8 ай бұрын
Please visit codingwitht.com/product/flutter-ecommerce-app-with-firebase/
@isyrafismail7801
@isyrafismail7801 7 ай бұрын
Hello sir I get an error when trying to login, it says null check operator used on a null value. What does that mean? And I don't find where the line of code that cause the problem
@CodingwithT
@CodingwithT 7 ай бұрын
Possible that error can be in the model. Just run in the debug mode and you'll find the error
@isyrafismail7801
@isyrafismail7801 7 ай бұрын
@@CodingwithT I got the problem here: `if (!loginFormKey.currentState!.validate())` It says _TypeError (Null check operator used on a null value)
@AlanAlejo-fp4mh
@AlanAlejo-fp4mh 6 ай бұрын
SAME, :( Did you fix that?
@isyrafismail7801
@isyrafismail7801 6 ай бұрын
@AlanAlejo-fp4mh i fixed that but I dont remember how 😂 try force stop the application and reopen the app without debugging it
@AlanAlejo-fp4mh
@AlanAlejo-fp4mh 6 ай бұрын
@@isyrafismail7801 try! 😤😤
@ahmedfouad1802
@ahmedfouad1802 2 ай бұрын
Hi i got this error when am run The following _TypeError was thrown building TLoginForm(dirty): type 'Null' is not a subtype of type 'String' in login screen
@isaacipole7157
@isaacipole7157 2 ай бұрын
Same here,were you able to find the solution?
@ahmedfouad1802
@ahmedfouad1802 2 ай бұрын
@@isaacipole7157 am just solve it by add ??””; for both email& password Email.text=localstorage.read(remember-me-email)??””;
@isaacipole7157
@isaacipole7157 2 ай бұрын
Blessings bro
@PrathamMakwana-wr5lv
@PrathamMakwana-wr5lv 2 ай бұрын
@@isaacipole7157 hey you found solution pls show the solution
@maxxy-r3q
@maxxy-r3q 3 ай бұрын
hello sir, why do I have after login even ask for email verification again? even though previously when registering an account it was already verified
@CodingwithT
@CodingwithT 3 ай бұрын
It sounds like there might be a navigation issue in your application. After a successful login, the app should ideally navigate to the appropriate screen or route based on the user's authentication status. It's possible that the navigation logic might need to be reviewed and adjusted to ensure a seamless user experience. Have you checked the navigation flow in your code to ensure that it correctly handles authenticated users?
@maxxy-r3q
@maxxy-r3q 3 ай бұрын
@@CodingwithT Hello sir, I want to ask again. why when I try to deliberately get the wrong password the exception doesn't want to trigger? even though I've followed everything you've shown.
@isaacipole7157
@isaacipole7157 2 ай бұрын
@@maxxy-r3q you will have to follow the tutorials carefully, there was a change you omitted, i advice follow the tutorial again you will find what you skipped
@zisouh710
@zisouh710 4 ай бұрын
I have error they give me "Type 'null' is not a subtype 'string'" Pleeaaase help me
@CodingwithT
@CodingwithT 4 ай бұрын
In the model file. when you are getting data using fromSnapShot you have to use ?? ' ' while assigning the data. Like UserModel( id: document.id, firstName: data['FirstName'] ?? '', lastName: data['LastName'] ?? '', username: data['Username'] ?? '', email: data['Email'] ?? '', phoneNumber: data['PhoneNumber'] ?? '', profilePicture: data['ProfilePicture'] ?? '', ); If this did not work, then you have to debug the code. This error means that it want some value in string but it is returning null
@cococartoon8272
@cococartoon8272 4 ай бұрын
If i am applying wrong password still it login into application how?
@aabb-un6ds
@aabb-un6ds 4 ай бұрын
Try to remove ! In the beginning of the form Validation ... if (loginformKey.currentState!) instead of (!loginformKey.currentState!)
@SamirAa-tw8xh
@SamirAa-tw8xh 4 ай бұрын
Hey, please help me. I want to open the app show me the home screen directly as a guest, and when I create sign in button any where on application how hide it if finish sign in.
@HuyTran-ve5jz
@HuyTran-ve5jz 3 ай бұрын
How do I log out sir, I don't see that part anywhere. Anyone who knows can help me?
@isaacipole7157
@isaacipole7157 2 ай бұрын
if you can remember from the tutorial he created a function and called the function in the verify email , actions: [ IconButton( onPressed: () => AuthenticationRepository.instance.logout(), icon: const Icon(CupertinoIcons.clear)) , copy this part, head to your setting screen where you have logout button, in you onPressed paste this "() => AuthenticationRepository.instance.logout()
@Hamza-yq7sj
@Hamza-yq7sj 8 ай бұрын
OnInit function give me error null is not a subtype of string...
@CodingwithT
@CodingwithT 7 ай бұрын
Means some value is expecting string but you are giving null to it
@wasifladla2084
@wasifladla2084 7 ай бұрын
​@@CodingwithTI face this error
@dilshanisenarathna8096
@dilshanisenarathna8096 7 ай бұрын
I also got this error. Did you fix it?
@Hamza-yq7sj
@Hamza-yq7sj 7 ай бұрын
@@wasifladla2084 yes
@CodingwithT
@CodingwithT 7 ай бұрын
I see many people are facing this issue. Can someone share their code? I will try to find the actual problem and will post the solution here
@eshu9838
@eshu9838 5 ай бұрын
when did you do logout part?😑
@CodingwithT
@CodingwithT 5 ай бұрын
Next videos
@AlanAlejo-fp4mh
@AlanAlejo-fp4mh 6 ай бұрын
First time I have an error in your code :( >>>>>>>Null check operator used on a null value
@CodingwithT
@CodingwithT 6 ай бұрын
Errors are good 😃. This means that you are using ! This operator on a null value.
@zulfiqaralihunzai
@zulfiqaralihunzai 6 ай бұрын
@@CodingwithT just REMOVE the email and password from onIntit widget in LoGIN CONTROLLER
@jeremymunroe
@jeremymunroe 4 ай бұрын
Ensure Form has key in this case controller.loginFormKey
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 191 МЛН
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 22 МЛН
Flutter Forgot Password with firebase | Reset Password in flutter
16:36
The Essential Guide to Flutter Email Verification with Firebase
24:17
LOGIN APP • FLUTTER - BLOC & FIREBASE Tutorial for Beginners 🔥
1:45:45
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 12 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 488 М.
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 3,7 МЛН