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

  Рет қаралды 14,889

Coding With T

Coding With T

Күн бұрын

Пікірлер: 147
@abdullahelmadawy
@abdullahelmadawy Жыл бұрын
Best series I have ever seen ❤
@CodingwithT
@CodingwithT Жыл бұрын
Thank you 😀✌️
@wasifladla2084
@wasifladla2084 Жыл бұрын
Expected a volue of type String', but got one of type 'Null' I face this error
@CodingwithT
@CodingwithT Жыл бұрын
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 Жыл бұрын
same here. Did you fix that?
@zisouh710
@zisouh710 9 ай бұрын
Bro how did you fix it please respond me
@techysparta9227
@techysparta9227 Жыл бұрын
Please do continue this series
@MohitJeswani-b5p
@MohitJeswani-b5p Жыл бұрын
Best playlist for flutter
@CodingwithT
@CodingwithT Жыл бұрын
Thank you 😊
@ShahzodBurhonov
@ShahzodBurhonov 6 ай бұрын
hello Tell the logout button in the settings class what to write
@pusula571
@pusula571 3 ай бұрын
/// Logout Button SizedBox( width: double.infinity, child: OutlinedButton( onPressed: () async { await AuthenticationRepository.instance.logout(); }, child: const Text('Logout'), ), ),
@SonnyboyMokoena
@SonnyboyMokoena Жыл бұрын
I got a feeling that next year by june, i will be a software engineer...😃
@CodingwithT
@CodingwithT Жыл бұрын
Not by next year. At the end of this course 😜
@SonnyboyMokoena
@SonnyboyMokoena Жыл бұрын
@@CodingwithT you got it right
@Suleiman-PC
@Suleiman-PC Жыл бұрын
Exactly bro that how I feel 😜
@professionneljacques4210
@professionneljacques4210 7 ай бұрын
Thanks a lot ! Great work ! since One week i'm coding like you😆😆😆
@CodingwithT
@CodingwithT 7 ай бұрын
Glad to hear that! and Awesome job
@shellcode-v6e
@shellcode-v6e Жыл бұрын
did you use userCredentials anywhere?
@CodingwithT
@CodingwithT Жыл бұрын
Not yet but you can if you want.
@awanish2925
@awanish2925 Жыл бұрын
Logout button is not logging out the user any help?
@CodingwithT
@CodingwithT Жыл бұрын
Please debug and share the error or exception.
@awanish2925
@awanish2925 Жыл бұрын
Thankyou Problem is solved
@awanish2925
@awanish2925 Жыл бұрын
Can you provide logout popup screen code
@gopikrishnan8999
@gopikrishnan8999 9 ай бұрын
​@@awanish2925how do you solve the error pls tell same problem I am facing
@pusula571
@pusula571 3 ай бұрын
@@awanish2925 /// Logout Button SizedBox( width: double.infinity, child: OutlinedButton( onPressed: () async { await AuthenticationRepository.instance.logout(); }, child: const Text('Logout'), ), ),
@ishuraa-b
@ishuraa-b 13 күн бұрын
When exactly will we get the onboarding screen now? Because if I start the application from start, the credentials are still saved & I'm not getting the onboarding screen like before.
@CodingwithT
@CodingwithT 12 күн бұрын
The onboarding screen appears only for first-time users. To see it again, you can clear the saved credentials or reset the app's shared preferences
@isyrafismail7801
@isyrafismail7801 Жыл бұрын
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 Жыл бұрын
Possible that error can be in the model. Just run in the debug mode and you'll find the error
@isyrafismail7801
@isyrafismail7801 Жыл бұрын
@@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 Жыл бұрын
SAME, :( Did you fix that?
@isyrafismail7801
@isyrafismail7801 Жыл бұрын
@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 Жыл бұрын
@@isyrafismail7801 try! 😤😤
@AnPham-t9z
@AnPham-t9z 3 ай бұрын
hi, i am having some strange things when i finish logging in or registering i get a blank page but when i refresh it shows the next screen i hope someone can help me.
@CodingwithT
@CodingwithT 3 ай бұрын
Make sure to properly debug the route and see if you are properly triggering the flow
@AnPham-t9z
@AnPham-t9z 3 ай бұрын
@@CodingwithT everything is fine but : [GETX] GOING TO ROUTE /NavigationMenu [GETX] CLOSE TO ROUTE /NavigationMenu
@adisbuljubasic5706
@adisbuljubasic5706 Жыл бұрын
MashAllah brother.. ❤ Will you maybe implement payment methods on the payment screen, maybe Stripe/PayPal?
@CodingwithT
@CodingwithT Жыл бұрын
Yes I'm trying to add that too at the end.
@adisbuljubasic5706
@adisbuljubasic5706 Жыл бұрын
@@CodingwithT would help us all out I think.. at least one method we have on the payment screen 💖
@shahzaibmehmood65
@shahzaibmehmood65 9 ай бұрын
Hi you create the input decoration of the textfieldform how to use this in it?
@CodingwithT
@CodingwithT 9 ай бұрын
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 9 ай бұрын
Thanks
@Rivero727
@Rivero727 4 ай бұрын
When is the logout function applied? In the previous video it was created but it cannot be used.
@CodingwithT
@CodingwithT 4 ай бұрын
You can add that in the settings screen. Create the button and call that function.
@Rivero727
@Rivero727 4 ай бұрын
@@CodingwithT thanks
@Hamza-yq7sj
@Hamza-yq7sj Жыл бұрын
OnInit function give me error null is not a subtype of string...
@CodingwithT
@CodingwithT Жыл бұрын
Means some value is expecting string but you are giving null to it
@wasifladla2084
@wasifladla2084 Жыл бұрын
​@@CodingwithTI face this error
@dilshanisenarathna8096
@dilshanisenarathna8096 Жыл бұрын
I also got this error. Did you fix it?
@Hamza-yq7sj
@Hamza-yq7sj Жыл бұрын
@@wasifladla2084 yes
@CodingwithT
@CodingwithT Жыл бұрын
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
@AugustBonou
@AugustBonou Жыл бұрын
please, how much can I get the complete code for?
@CodingwithT
@CodingwithT Жыл бұрын
Please visit codingwitht.com/product/flutter-ecommerce-app-with-firebase/
@abhisheksitar
@abhisheksitar 9 ай бұрын
Excellent series!
@CodingwithT
@CodingwithT 9 ай бұрын
Thank you! Glad you enjoyed it!
@taku_and_jesus
@taku_and_jesus 3 ай бұрын
Best series but i have one problem after the onboarding screen when i go to the login screen theres the logo and texts but on the bottom that theres a huge grey box thats covering almost the whole screen, please help
@CodingwithT
@CodingwithT 3 ай бұрын
Thanks for the feedback! 😊 It sounds like there might be a layout or widget issue causing the grey box to appear. Try checking the layout structure on the login screen. If the issue persists you can contact us on Whatsapp.
@taku_and_jesus
@taku_and_jesus 3 ай бұрын
@@CodingwithT so the problem is not in the login form
@taku_and_jesus
@taku_and_jesus 3 ай бұрын
@@CodingwithT i checked my login screen and all the codes are correct but the real issue is that the logo and texts are there but the only things being covered by the grey box are the things in the login form e.g email, password, and google and facebook icons
@yjskrishnateja
@yjskrishnateja 4 ай бұрын
Sir logout button on pressed u havent said please tell what should i keep so it gets loggedout .thankyou ;)
@pusula571
@pusula571 3 ай бұрын
/// Logout Button SizedBox( width: double.infinity, child: OutlinedButton( onPressed: () async { await AuthenticationRepository.instance.logout(); }, child: const Text('Logout'), ), ),
@HeaderTalk
@HeaderTalk 5 ай бұрын
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 5 ай бұрын
Cannot say anything, need to check your code
@TuanNguyen-qc6pn
@TuanNguyen-qc6pn 6 ай бұрын
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 6 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
Make sure the code is same and also debug it as there is no such specific thing for android and iOS.
@ahmedfouad1802
@ahmedfouad1802 8 ай бұрын
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 8 ай бұрын
Same here,were you able to find the solution?
@ahmedfouad1802
@ahmedfouad1802 8 ай бұрын
@@isaacipole7157 am just solve it by add ??””; for both email& password Email.text=localstorage.read(remember-me-email)??””;
@isaacipole7157
@isaacipole7157 8 ай бұрын
Blessings bro
@PrathamMakwana-wr5lv
@PrathamMakwana-wr5lv 8 ай бұрын
@@isaacipole7157 hey you found solution pls show the solution
@adisbuljubasic5706
@adisbuljubasic5706 3 ай бұрын
Did you fix it?
@maxxy-r3q
@maxxy-r3q 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
@@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 8 ай бұрын
@@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
@amanimakoi7651
@amanimakoi7651 8 ай бұрын
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 8 ай бұрын
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.
@shaiea_ali
@shaiea_ali 3 ай бұрын
When I created the email account, it was not correct
@CodingwithT
@CodingwithT 3 ай бұрын
Hi! Please make sure to check the steps you're following and ensure everything is implemented correctly. If the issue persists, try debugging the code to identify the root cause. Let me know if you need further assistance! 😊
@phantuoi_it_247
@phantuoi_it_247 2 ай бұрын
I think you made a mistake by placing the "key: controller.loginFormKey" in the Padding not in the Form of LoginForm
@zisouh710
@zisouh710 9 ай бұрын
I have error they give me "Type 'null' is not a subtype 'string'" Pleeaaase help me
@CodingwithT
@CodingwithT 9 ай бұрын
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 10 ай бұрын
If i am applying wrong password still it login into application how?
@aabb-un6ds
@aabb-un6ds 10 ай бұрын
Try to remove ! In the beginning of the form Validation ... if (loginformKey.currentState!) instead of (!loginformKey.currentState!)
@SamirAa-tw8xh
@SamirAa-tw8xh 9 ай бұрын
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.
@AlanAlejo-fp4mh
@AlanAlejo-fp4mh Жыл бұрын
First time I have an error in your code :( >>>>>>>Null check operator used on a null value
@CodingwithT
@CodingwithT Жыл бұрын
Errors are good 😃. This means that you are using ! This operator on a null value.
@zulfiqaralihunzai
@zulfiqaralihunzai 11 ай бұрын
@@CodingwithT just REMOVE the email and password from onIntit widget in LoGIN CONTROLLER
@jeremymunroe
@jeremymunroe 9 ай бұрын
Ensure Form has key in this case controller.loginFormKey
@phantuoi_it_247
@phantuoi_it_247 2 ай бұрын
I think you made a mistake by placing the "key: controller.loginFormKey" in the Padding not in the Form of LoginForm
@eshu9838
@eshu9838 11 ай бұрын
when did you do logout part?😑
@CodingwithT
@CodingwithT 11 ай бұрын
Next videos
@pusula571
@pusula571 3 ай бұрын
/// Logout Button SizedBox( width: double.infinity, child: OutlinedButton( onPressed: () async { await AuthenticationRepository.instance.logout(); }, child: const Text('Logout'), ), ),
@HuyTran-ve5jz
@HuyTran-ve5jz 8 ай бұрын
How do I log out sir, I don't see that part anywhere. Anyone who knows can help me?
@isaacipole7157
@isaacipole7157 8 ай бұрын
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()
@viveksingh7930
@viveksingh7930 19 күн бұрын
i can login without email and password like before plzz help
@CodingwithT
@CodingwithT 19 күн бұрын
You can login without email and password then please check if you are calling the right function. Then check if you added proper return statements where function stopped
@yourparcel
@yourparcel 7 ай бұрын
❤love u brooh
@CodingwithT
@CodingwithT 7 ай бұрын
Love you too buddy ❤️
@pusula571
@pusula571 3 ай бұрын
Selamu Aleyküm hocam. Ben giriş yapamıyorum. Acaba bu fonksiyonu kullanmadığımız için mi 'final userCredentials = await AuthenticationRepository.instance.loginWithEmailAndPassword(email.text.trim(), password.text.trim()); '
@CodingwithT
@CodingwithT 3 ай бұрын
Wa Aleykum Assalam! 🌟 Please try debugging your code first to see if there are any errors or warnings being logged. Check if the loginWithEmailAndPassword function is properly implemented and verify the backend settings (e.g., Firebase configuration). Debugging will give you a clearer idea of where the issue might be. 🔍 Let me know what you find! 😊
@pusula571
@pusula571 3 ай бұрын
​@@CodingwithT Hatamı ChatCPT buldu hocam. // Check Internet Connectivity final isConnected = await NetworkManager.instance.isConnected(); if (isConnected) { TFullScreenLoader.stopLoading(); return; }. İnternet bağlantısını kontrol ettiğimiz kısımda ! işaretini koymamışım. Saygılar.
Flutter Forgot Password with firebase | Reset Password in flutter
16:36
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
The Essential Guide to Flutter Email Verification with Firebase
24:17
📱Reset Password • Firebase x Flutter Tutorial ♡
13:09
Mitch Koko
Рет қаралды 53 М.
Flutter Firebase Role-Based Authentication Tutorial
27:40
WTF Code
Рет қаралды 2,1 М.
📱Local Storage • HIVE × FLUTTER Tutorial ♡
10:27
Mitch Koko
Рет қаралды 77 М.
Super Easy React Native AUTHENTICATION with Firebase 🔒
22:29
Simon Grimm
Рет қаралды 106 М.
Flutter GetX Authentication - Flutter GetX Tutorial
22:01
Dear Programmer
Рет қаралды 2,1 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН