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.
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.
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.
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
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
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!
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
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.
@@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
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?
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
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.
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?
@@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.
@@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
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
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
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()
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.
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! 😊
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
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()); '
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! 😊
Best series I have ever seen ❤
Thank you 😀✌️
Best playlist for flutter
Thank you 😊
I got a feeling that next year by june, i will be a software engineer...😃
Not by next year. At the end of this course 😜
@@CodingwithT you got it right
Exactly bro that how I feel 😜
Expected a volue of type String', but got one of type 'Null'
I face this error
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.
same here. Did you fix that?
Bro how did you fix it please respond me
Please do continue this series
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.
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
hello Tell the logout button in the settings class what to write
/// Logout Button
SizedBox(
width: double.infinity,
child: OutlinedButton(
onPressed: () async {
await AuthenticationRepository.instance.logout();
},
child: const Text('Logout'),
),
),
Thanks a lot !
Great work ! since One week i'm coding like you😆😆😆
Glad to hear that! and Awesome job
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.
Make sure to properly debug the route and see if you are properly triggering the flow
@@CodingwithT
everything is fine but :
[GETX] GOING TO ROUTE /NavigationMenu
[GETX] CLOSE TO ROUTE /NavigationMenu
did you use userCredentials anywhere?
Not yet but you can if you want.
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
Cannot say anything, need to check your code
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
Possible that error can be in the model. Just run in the debug mode and you'll find the error
@@CodingwithT I got the problem here: `if (!loginFormKey.currentState!.validate())` It says _TypeError (Null check operator used on a null value)
SAME, :( Did you fix that?
@AlanAlejo-fp4mh i fixed that but I dont remember how 😂 try force stop the application and reopen the app without debugging it
@@isyrafismail7801 try! 😤😤
Hi you create the input decoration of the textfieldform how to use this in it?
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!
Thanks
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
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.
@@CodingwithT so the problem is not in the login form
@@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
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?
Make sure the code is same and also debug it as there is no such specific thing for android and iOS.
When is the logout function applied? In the previous video it was created but it cannot be used.
You can add that in the settings screen. Create the button and call that function.
@@CodingwithT thanks
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
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.
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
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.
Excellent series!
Thank you! Glad you enjoyed it!
Logout button is not logging out the user any help?
Please debug and share the error or exception.
Thankyou Problem is solved
Can you provide logout popup screen code
@@awanish2925how do you solve the error pls tell same problem I am facing
@@awanish2925 /// Logout Button
SizedBox(
width: double.infinity,
child: OutlinedButton(
onPressed: () async {
await AuthenticationRepository.instance.logout();
},
child: const Text('Logout'),
),
),
Sir logout button on pressed u havent said please tell what should i keep so it gets loggedout .thankyou ;)
/// Logout Button
SizedBox(
width: double.infinity,
child: OutlinedButton(
onPressed: () async {
await AuthenticationRepository.instance.logout();
},
child: const Text('Logout'),
),
),
MashAllah brother.. ❤
Will you maybe implement payment methods on the payment screen, maybe Stripe/PayPal?
Yes I'm trying to add that too at the end.
@@CodingwithT would help us all out I think.. at least one method we have on the payment screen 💖
please, how much can I get the complete code for?
Please visit codingwitht.com/product/flutter-ecommerce-app-with-firebase/
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
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?
@@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.
@@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
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
Same here,were you able to find the solution?
@@isaacipole7157 am just solve it by add ??””; for both email& password
Email.text=localstorage.read(remember-me-email)??””;
Blessings bro
@@isaacipole7157 hey you found solution pls show the solution
Did you fix it?
OnInit function give me error null is not a subtype of string...
Means some value is expecting string but you are giving null to it
@@CodingwithTI face this error
I also got this error. Did you fix it?
@@wasifladla2084 yes
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
I have error they give me
"Type 'null' is not a subtype 'string'"
Pleeaaase help me
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
How do I log out sir, I don't see that part anywhere. Anyone who knows can help me?
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()
First time I have an error in your code :(
>>>>>>>Null check operator used on a null value
Errors are good 😃. This means that you are using ! This operator on a null value.
@@CodingwithT just REMOVE the email and password from onIntit widget in LoGIN CONTROLLER
Ensure Form has key in this case controller.loginFormKey
I think you made a mistake by placing the "key: controller.loginFormKey" in the Padding not in the Form of LoginForm
If i am applying wrong password still it login into application how?
Try to remove ! In the beginning of the form Validation ... if (loginformKey.currentState!) instead of (!loginformKey.currentState!)
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.
When I created the email account, it was not correct
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! 😊
I think you made a mistake by placing the "key: controller.loginFormKey" in the Padding not in the Form of LoginForm
when did you do logout part?😑
Next videos
/// Logout Button
SizedBox(
width: double.infinity,
child: OutlinedButton(
onPressed: () async {
await AuthenticationRepository.instance.logout();
},
child: const Text('Logout'),
),
),
i can login without email and password like before plzz help
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
❤love u brooh
Love you too buddy ❤️
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()); '
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! 😊
@@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.