Part-7 | Flutter How to Create Account/Sign Up with Firebase | Flutter Firebase Tutorials Tutorials
ฝัง
- เผยแพร่เมื่อ 31 ส.ค. 2022
- In this video i will teach you how we can create account or sign up or register user with firebase authentication using firebase auth package. I will also teach you how we can handle exceptions and progress loading based on response.
Playlist: lnkd.in/dfwijFgd
instagram: / thetechbrotherss
join fb group: lnkd.in/dAWaFWtp
Playlist: lnkd.in/dVv_jy4W
Road map: lnkd.in/dHF8yc68
_____________/Connect On Social Media\____________
► linkedin:➜ / axiftaj
► Instagram:➜ / axif_taj
► Facebook:➜ / aaxiftaj
► Twitter:➜ / axiftaj
► GitHub:➜ github.com/axiftaj
► Hire me on Fiver:➜ www.fiverr.com/asif_taj
=========================================
flutter, connect firebase, firebase tutorials, firebase authentication
For business queries : axiftaj@gmail.com
Thank you for watching my channel do give feedback about this video.
#flutter #firebase #firebasehindi #firebasetutorial #flutter #flutterdev #login_form #fluttering - วิทยาศาสตร์และเทคโนโลยี
guys if anyone of you is struggling with the error of your app freezing when you debug your app see in the bottom left there is an option of uncaught exceptions just untick that it will work.
Give me a like cause it took me hours to figure it out and make it work ..
This didn’t happen but thanks for sharing this
Thank you bro yes its happening but solved by unchecking uncaught exception. (happening only in VS Code)
I cant find the option of uncaught exception. Where is it?
@@creative_mudassir I cant find the option of uncaught exception. Where is it?
Wao firstly I was scared from backend from the flutter but when I started your firebase playlist then I realized it's very simple... Thank you, Sir
Flutter is to simple, do subscribe and share with your friends
JAZAKAllah bhai Bohot shukriya
thank you
very helpful video. Thank you
Thank you
i watch out your video again n again n I did it same as you did but when I click on a signup button toast message is not generating instead of this it navigate to exception.dart file and this error show me there ''passwor length is short or already exit this email etc' ..
not sure why this is happening bro
Sir Asif taj is great ❤❤❤❤❤❤
Thank you
very helpful and simple explanation
thank you, do share with your friends
with love from India
Thank you
sir I have question if anyone wants to deliver project to client. What to ask client to get access of his firebase account. obviously I cannot make database or authentications setup on my account of firebase.
Yes ask him to give your access
bhiaya when for the same user i am registering again...the toast is not generating and rather error_patch.dart is opening with " external static Never _throw(Object error, StackTrace stackTrace);"
Make sure you follow the process along side with me from the start
Error solved:
if (_formKey.currentState!.validate()) {
String email = _emailController.text.trim();
String password = _passwordController.text.trim();
try {
UserCredential userCredential =
await _auth.createUserWithEmailAndPassword(
email: email, password: password);
//save this user id in your cloud firestore or do whatever you want
print(userCredential.user!.uid);
} catch (e) {
print(e.toString());
}
}
same error had you solved it
Mera b same error a rha solve kese krna ?
its a good explanation
thanks
bhi when for the same user i am registering again...the toast is not generating and rather error_patch.dart is opening with " external static Never _throw(Object error, StackTrace stackTrace);" plz tell me the soution....
not sure, please print stack to get the errors
use flushbar and add ..show(context) at the end of flushbar code
why did u imported firebase core library in sign , in last video u didn't imported anything to it , so where did u used firebase_core in signup
Sir not sure right now, but i do think we don't need core library in sign in.
Sir flutter toast ka jo function bnaya tha alag class ma ... Usse jab call krte ha sign up page pr ... The error display ni krta screen pr ... Project file ma exception ka error de rha ha
Koi issue hoga watch video carefully
same error bai ?? anysolution
The body might complete normally, causing 'null' to be returned, but the return type, 'FutureOr', is a potentially non-nullable type. i faced this error please some one help me
Please follow video carefully
@@thetechbrotherss i followed from the start again but it's not working and i don't understand what i have to do 😭
sir i have one problem when i put as usal format email and password is good email is going on firebase but when put less then 6 password then the error is show on flutter toast app is crash and when i restart again project the error then show why not show that time sir, i had all seem your git code but sill is problem
now i am slove with the help of firebase doc but the different method
try {
final credential = await FirebaseAuth.instance.createUserWithEmailAndPassword(
email: emailAddress,
password: password,
);
} on FirebaseAuthException catch (e) {
if (e.code == 'weak-password') {
print('The password provided is too weak.');
} else if (e.code == 'email-already-in-use') {
print('The account already exists for that email.');
}
} catch (e) {
print(e);
}
glad to hear that.
I just wanted to know that if we are taking more entries like name , gender... then what can we do
You can do that
@@thetechbrotherss can you please tell me how?
sir pahlay mera app crash ho jata haiii phirr toast mei message dhikata hai
wo already used email wla problem.... mtalab direct toast message show nai krwata..
app crash hota haiii.... full apko hii follow kiya hai
Ap crash hony k koi t wajah hogi
kya koe solution mila ha apko is problem ka?
same problem..
@@sahilsikander5122 naii naaa. Mei nay bohat try ki magar bss last mei Akhir chor hii diyaa
@@sahilsikander5122 app islie crash horhi he he kyonki VS code unhandled exception pr app close kr deta he isko band krne ke lye debug krte waqt neeche unhandled exception ko uncheck kr skte he
Ya best way ye he ke try catch use kya exception handling ke lye
getting error firebase initialised is not correct , i wrote line by line code u have given
where is the problem ??
Sir not sure right now, but i do think we don't need core library in sign in.
Sir, ap linkedin par hai?
Maien already screen design kr rkhi hai kya ye video dekh skti hu?
Wiase bhi logic hi lagana hai na 🥲
g check description for my social links
@@thetechbrotherss okie
thank you sooooooooooooooooo much
thanks
i am recieving this error after completing the whole process for more when 5 times
the error is
W/System ( 1983): Ignoring header X-Firebase-Locale because its value was null.
This is not an error, ad internet permission
Ismai email and passowrd k satg user name bhu enter kr skte hai na sir
g kr skty ha phr usko separate database ma store krna hoga
@@thetechbrotherss sir firebase tough lag rha hai, project utha lia banane ko but backend mai work krna mushkil ho rha hai maine tabbar use kia tha sign in and sign up k liye
@@thetechbrotherss ok sir
what if we have multiple fields in sign up
Thank you have to store them in database against user id
super easy
Yea
Sir ....there is not any pubspec.yaml file in my android studio even after creating new project. Any solution???
I’m not sure bro 🥲
bro select project
click on dropdownbutton by default it shows Android
May I know how to reset our text field after sign up and login
Clear controler
@@thetechbrotherss thank you soo much♥️
i also try to add hide passoword or unhide when i click eye button
suffixIcon: IconButton(onPressed: () {
setState(() {
if(istoggle){
hidepass = false;
istoggle = false;
}else{
hidepass = true;
istoggle = true;
}
});
nice.
Hello Sir, when I used the VS code IDE I encountered a bug when the application was run when createUserWithEmailAndPassword gave a callback error because the email already exists or some other firebase error. the application freezes. but when I use the android studio IDE the application runs smoothly and the toastMessage error callback runs without the application freezing. how could this happen?
Help me!!
i am not sure it was supposed to be work on vs code as well.
same brother
i am facing the same issue as well..i tried to rebuild even but still the same
Error solved: if (_formKey.currentState!.validate()) {
String email = _emailController.text.trim();
String password = _passwordController.text.trim();
try {
UserCredential userCredential =
await _auth.createUserWithEmailAndPassword(
email: email, password: password);
//save this user id in your cloud firestore or do whatever you want
print(userCredential.user!.uid);
} catch (e) {
print(e.toString());
}
}
very keenly explained
Share with your friends
I follow along with you each and every step from the start of this series,but when i click on sign up button then
it is showing me the error that "firebase is not initialized correctly". But i never missed any step and follow the
step by step method with you. Asif taj bhai please help
Please check your permission in auth and main.dart file
@@thetechbrotherss thanks for your reply I really appreciate it. Bhai will you please tell me in detail please? If you reply with me the proper steps to follow
same error bro. did you fixed it?
@@uzairB533 no
@@AbdulWahab_092 add asyn and await while intilizing in main
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(const MyApp());
}
sir mera progress indicator chalta hi jaa raha hai ruk nahi raha please help
becase data is not coming or their must be something else error.
@@thetechbrotherss yes sir got it actually i was setting bool true everywhere.
those who r getting the error of ignoring header x firebase locale because its value was null flutter firebase
just switch to vs code from Android studio it will run properly without any issue n error
Yes this is not an error
thank you man .❤❤
Share with your friends
Sir there is null check error
Please follow video carefully and send email and password
Sir user show ni ho ra firebase pr
Check for errors ap mistake kr rahy hon gy
thank you brother
Subscribe and share
Unhandled Exception: [firebase_auth/unknown] com.google.firebase.FirebaseException: An internal error has occurred. [ API key not valid. Please pass a valid API key. ] .. why it is showing this error when i tap on Sign Up Button .... please help🙏😭
you did't added the firebase setup perfectly. Please watch how to setup firebase with flutter app.
sir ea gmail Real ha e fake firebase me please sir ⭐🌟⭐
ab real r fake dono use kr skty ho
Firebase.initializedapp() error araha ha
Agr ap start sy follow kry bro phr na atta chrck mainy sekhaya ha packages kaise add krty ha
bhai ap khai web ma tu project nhi run kar rahy mean k chrome wagra paa
agar wha pa run kar rahy oos k lea alag sy dependencies hain web k lahaz saay
Bro showing me this error when i click on sign up button. data is not registering in data base.
Ignoring header X-Firebase-Locale because its value was null.
Not sure why this coming 😭
Did you find the solution of this error
?
agr Account Successfull create ho jaye tab message sho ho k Your Account has been Created Successfully...
Ap kr lo show mainy process krwa dia ha na
@@thetechbrotherss kar dia hai bhai
Error de rha sir
kya error dy raha ha ?
please share the source code sir
githhub.com/axiftaj
tu bol kuch aur raha hai aur kar kuch aur raha hai khud sikh lete pahele😂
Ok thank you for feedback
E/flutter (18239): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: [firebase_auth/channel-error] Unable to establish connection on channel. What is this error? It come when i tap on sign up button. I am using the same method as yours@AsifTajTech
Clean project and try again
Sir ,
" No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() "
ye Exception arahi h
Please watch from start
E/RecaptchaCallWrapper(31381): Initial task failed for action RecaptchaAction(action=custom_signUpPassword)with exception - The email address is already in use by another account.
Screen Freeze hora hai
Please help
Please enable email in your firebase console project and try again
E/flutter (11429): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(null-error, Host platform returned null value for non-null return value., null, null)
E/flutter (11429): #0 FirebaseCoreHostApi.optionsFromResource (package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart:248:7)
E/flutter (11429):
E/flutter (11429): #1 MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:89:25)
E/flutter (11429):
E/flutter (11429): #2 Firebase.initializeApp (package:firebase_core/src/firebase.dart:43:31)
E/flutter (11429):
E/flutter (11429): #3 main (package:untitled1/main.dart:9:4)
E/flutter (11429):
E/flutter (11429):
why this error please resolve?? i am facing this issue form past 3 days
i have to check the code
did u solved it?
sir yhan breakup point arha ha
await _delegate.createUserWithEmailAndPassword(email, password),
Ap kuch mistake kr rahy ho follow along side with me