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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 136

  • @poetryiscodingdecoding7965
    @poetryiscodingdecoding7965 ปีที่แล้ว +5

    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 ..

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +2

      This didn’t happen but thanks for sharing this

    • @creative_mudassir
      @creative_mudassir ปีที่แล้ว

      Thank you bro yes its happening but solved by unchecking uncaught exception. (happening only in VS Code)

    • @Hamza-dw4iw
      @Hamza-dw4iw 7 หลายเดือนก่อน

      I cant find the option of uncaught exception. Where is it?

    • @Hamza-dw4iw
      @Hamza-dw4iw 7 หลายเดือนก่อน

      @@creative_mudassir I cant find the option of uncaught exception. Where is it?

  • @bilalahmad-uj7mb
    @bilalahmad-uj7mb ปีที่แล้ว +6

    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

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      Flutter is to simple, do subscribe and share with your friends

  • @syedshabbarraza6384
    @syedshabbarraza6384 4 หลายเดือนก่อน

    JAZAKAllah bhai Bohot shukriya

  • @alihussainabro7694
    @alihussainabro7694 ปีที่แล้ว +1

    very helpful video. Thank you

  • @talhazafar7913
    @talhazafar7913 9 หลายเดือนก่อน

    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' ..

    • @thetechbrotherss
      @thetechbrotherss  7 หลายเดือนก่อน

      not sure why this is happening bro

  • @asifshinwari1552
    @asifshinwari1552 ปีที่แล้ว +1

    Sir Asif taj is great ❤❤❤❤❤❤

  • @meghasharma4875
    @meghasharma4875 2 หลายเดือนก่อน

    very helpful and simple explanation

    • @thetechbrotherss
      @thetechbrotherss  2 หลายเดือนก่อน

      thank you, do share with your friends

  • @poetryiscodingdecoding7965
    @poetryiscodingdecoding7965 ปีที่แล้ว +1

    with love from India

  • @ChainCrafts99
    @ChainCrafts99 9 หลายเดือนก่อน

    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.

    • @thetechbrotherss
      @thetechbrotherss  9 หลายเดือนก่อน

      Yes ask him to give your access

  • @poetryiscodingdecoding7965
    @poetryiscodingdecoding7965 ปีที่แล้ว +1

    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);"

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Make sure you follow the process along side with me from the start

    • @zainahmad4532
      @zainahmad4532 ปีที่แล้ว

      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());
      }
      }

    • @armangul2078
      @armangul2078 ปีที่แล้ว

      same error had you solved it

    • @its_me_ahmadali
      @its_me_ahmadali ปีที่แล้ว

      Mera b same error a rha solve kese krna ?

  • @Aryangupta-li9mt
    @Aryangupta-li9mt 24 วันที่ผ่านมา

    its a good explanation

  • @its_me_ahmadali
    @its_me_ahmadali ปีที่แล้ว

    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....

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      not sure, please print stack to get the errors

    • @Hamza-dw4iw
      @Hamza-dw4iw 7 หลายเดือนก่อน

      use flushbar and add ..show(context) at the end of flushbar code

  • @durgeshjadhav4804
    @durgeshjadhav4804 ปีที่แล้ว

    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

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Sir not sure right now, but i do think we don't need core library in sign in.

  • @DreamLightArtGallery
    @DreamLightArtGallery ปีที่แล้ว +2

    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

  • @sobiaarshad5694
    @sobiaarshad5694 10 หลายเดือนก่อน

    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

    • @thetechbrotherss
      @thetechbrotherss  10 หลายเดือนก่อน

      Please follow video carefully

    • @sobiaarshad5694
      @sobiaarshad5694 10 หลายเดือนก่อน

      @@thetechbrotherss i followed from the start again but it's not working and i don't understand what i have to do 😭

  • @MuhammadRahman-kw4tf
    @MuhammadRahman-kw4tf ปีที่แล้ว

    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

    • @MuhammadRahman-kw4tf
      @MuhammadRahman-kw4tf ปีที่แล้ว

      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);
      }

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      glad to hear that.

  • @omthakur7201
    @omthakur7201 ปีที่แล้ว

    I just wanted to know that if we are taking more entries like name , gender... then what can we do

  • @maazafridi2090
    @maazafridi2090 ปีที่แล้ว +2

    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

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Ap crash hony k koi t wajah hogi

    • @sahilsikander5122
      @sahilsikander5122 ปีที่แล้ว

      kya koe solution mila ha apko is problem ka?
      same problem..

    • @maazafridi2090
      @maazafridi2090 ปีที่แล้ว +1

      @@sahilsikander5122 naii naaa. Mei nay bohat try ki magar bss last mei Akhir chor hii diyaa

    • @undercover4874
      @undercover4874 ปีที่แล้ว

      @@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

  • @durgeshjadhav4804
    @durgeshjadhav4804 ปีที่แล้ว

    getting error firebase initialised is not correct , i wrote line by line code u have given
    where is the problem ??

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Sir not sure right now, but i do think we don't need core library in sign in.

  • @yeonjin8
    @yeonjin8 หลายเดือนก่อน

    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 🥲

    • @thetechbrotherss
      @thetechbrotherss  หลายเดือนก่อน +1

      g check description for my social links

    • @yeonjin8
      @yeonjin8 หลายเดือนก่อน

      @@thetechbrotherss okie

  • @ruchibajracharya8294
    @ruchibajracharya8294 6 หลายเดือนก่อน

    thank you sooooooooooooooooo much

  • @microdeskpk
    @microdeskpk ปีที่แล้ว

    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.

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      This is not an error, ad internet permission

  • @yeonjin8
    @yeonjin8 หลายเดือนก่อน

    Ismai email and passowrd k satg user name bhu enter kr skte hai na sir

    • @thetechbrotherss
      @thetechbrotherss  หลายเดือนก่อน

      g kr skty ha phr usko separate database ma store krna hoga

    • @yeonjin8
      @yeonjin8 หลายเดือนก่อน

      @@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

    • @yeonjin8
      @yeonjin8 หลายเดือนก่อน

      @@thetechbrotherss ok sir

  • @Becoder15604
    @Becoder15604 ปีที่แล้ว

    what if we have multiple fields in sign up

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Thank you have to store them in database against user id

  • @SehrishMoujahid
    @SehrishMoujahid ปีที่แล้ว

    super easy

  • @safaanwar2930
    @safaanwar2930 ปีที่แล้ว +3

    Sir ....there is not any pubspec.yaml file in my android studio even after creating new project. Any solution???

  • @shivanipaswan5657
    @shivanipaswan5657 ปีที่แล้ว

    May I know how to reset our text field after sign up and login

  • @meghasharma4875
    @meghasharma4875 2 หลายเดือนก่อน

    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;
    }
    });

  • @metacode4696
    @metacode4696 ปีที่แล้ว

    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!!

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      i am not sure it was supposed to be work on vs code as well.

    • @its_shanahmad1859
      @its_shanahmad1859 ปีที่แล้ว

      same brother

    • @poetryiscodingdecoding7965
      @poetryiscodingdecoding7965 ปีที่แล้ว

      i am facing the same issue as well..i tried to rebuild even but still the same

    • @zainahmad4532
      @zainahmad4532 ปีที่แล้ว

      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());
      }
      }

  • @MrHaji-kp3mm
    @MrHaji-kp3mm ปีที่แล้ว +1

    very keenly explained

  • @AbdulWahab_092
    @AbdulWahab_092 ปีที่แล้ว +1

    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

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      Please check your permission in auth and main.dart file

    • @AbdulWahab_092
      @AbdulWahab_092 ปีที่แล้ว +1

      @@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

    • @uzairB533
      @uzairB533 ปีที่แล้ว

      same error bro. did you fixed it?

    • @AbdulWahab_092
      @AbdulWahab_092 ปีที่แล้ว

      @@uzairB533 no

    • @asadullah4269
      @asadullah4269 ปีที่แล้ว

      @@AbdulWahab_092 add asyn and await while intilizing in main
      void main() async {
      WidgetsFlutterBinding.ensureInitialized();
      await Firebase.initializeApp();
      runApp(const MyApp());
      }

  • @LuCiFeR-pt2hs
    @LuCiFeR-pt2hs ปีที่แล้ว +1

    sir mera progress indicator chalta hi jaa raha hai ruk nahi raha please help

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      becase data is not coming or their must be something else error.

    • @LuCiFeR-pt2hs
      @LuCiFeR-pt2hs ปีที่แล้ว

      @@thetechbrotherss yes sir got it actually i was setting bool true everywhere.

  • @ruchirjain1690
    @ruchirjain1690 ปีที่แล้ว

    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

  • @muhammadmuneebarshad7498
    @muhammadmuneebarshad7498 ปีที่แล้ว +1

    thank you man .❤❤

  • @waleedasghar1834
    @waleedasghar1834 ปีที่แล้ว +1

    Sir there is null check error

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Please follow video carefully and send email and password

  • @muhammadhisham4478
    @muhammadhisham4478 หลายเดือนก่อน

    Sir user show ni ho ra firebase pr

    • @thetechbrotherss
      @thetechbrotherss  หลายเดือนก่อน

      Check for errors ap mistake kr rahy hon gy

  • @praneshpyarashrestha3
    @praneshpyarashrestha3 ปีที่แล้ว +1

    thank you brother

  • @siddhantverma6774
    @siddhantverma6774 ปีที่แล้ว +1

    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🙏😭

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      you did't added the firebase setup perfectly. Please watch how to setup firebase with flutter app.

  • @mkkhanofficials
    @mkkhanofficials ปีที่แล้ว +1

    sir ea gmail Real ha e fake firebase me please sir ⭐🌟⭐

  • @Informative244
    @Informative244 ปีที่แล้ว

    Firebase.initializedapp() error araha ha

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Agr ap start sy follow kry bro phr na atta chrck mainy sekhaya ha packages kaise add krty ha

    • @talhakhubaibtalhakhubaib1569
      @talhakhubaibtalhakhubaib1569 ปีที่แล้ว

      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

  • @uzairB533
    @uzairB533 ปีที่แล้ว

    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.

  • @mudasirkhan8058
    @mudasirkhan8058 ปีที่แล้ว +1

    agr Account Successfull create ho jaye tab message sho ho k Your Account has been Created Successfully...

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Ap kr lo show mainy process krwa dia ha na

    • @mudasirkhan8058
      @mudasirkhan8058 ปีที่แล้ว

      @@thetechbrotherss kar dia hai bhai

  • @aritreyachandra5199
    @aritreyachandra5199 ปีที่แล้ว

    Error de rha sir

  • @adnankhan-wh6rb
    @adnankhan-wh6rb ปีที่แล้ว

    please share the source code sir

  • @kartikpatadiya3417
    @kartikpatadiya3417 ปีที่แล้ว

    tu bol kuch aur raha hai aur kar kuch aur raha hai khud sikh lete pahele😂

  • @muhammedarslanriaz588
    @muhammedarslanriaz588 6 หลายเดือนก่อน

    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

  • @mohibsaleem41
    @mohibsaleem41 ปีที่แล้ว

    Sir ,
    " No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() "
    ye Exception arahi h

  • @rishabnegi2334
    @rishabnegi2334 ปีที่แล้ว

    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

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      Please enable email in your firebase console project and try again

  • @user-kn4dx7rv4b
    @user-kn4dx7rv4b 8 หลายเดือนก่อน +1

    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

  • @mstrsarib6157
    @mstrsarib6157 ปีที่แล้ว +1

    sir yhan breakup point arha ha
    await _delegate.createUserWithEmailAndPassword(email, password),

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Ap kuch mistake kr rahy ho follow along side with me