How to Update Data in Firestore Flutter - Flutter Firebase CRUD 2023

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2022
  • In this Flutter firebase CRUD video, we will learn the Update part of CRUD in Firestore.
    PLAYLIST: • Flutter Login App - UI...
    In our previous videos we covered how to Create and Read data from Firebase Cloud Firestore. Therefore, in this video we will cover how to Update any record using Flutter Firestore. We will use Firestore document ID to update record.
    LOGIN APP PLAYLISTS
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ► COMPLETE PLAYLIST: • Flutter Login App - UI...
    ► FIREBASE PLAYLIST: • Flutter Firebase Basic...
    DOWNLOAD PROJECT
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ► CODE & RESOURCES: codingwitht.com/flutter-login...
    VIDEOS
    ▬▬▬▬▬▬▬▬▬▬ DESIGN ▬▬▬▬▬▬▬▬▬▬
    ► 01 - Flutter Folder Structure • Flutter App with Fireb...
    ► 02 - Flutter Folder Structure • How to Create a Flutte...
    ► 03 - Setup Theme Light & Dark: • How to Setup a Custom ...
    ► 04 - Flutter Native Splash • How to create Flutter ...
    ► 05 - Custom Splash with Animation • Flutter Splash Screen ...
    ► 06 - On Boarding Screen • Flutter Onboarding Scr...
    ► 07 - Welcome Screen Design • Welcome Screen | Flutt...
    ► 08 - Animate any widget • Flutter Animation 2023...
    ► 09 - Flutter Login UI • Flutter Animation 2023...
    ► 10 - Flutter Signup UI • Modern Signup form in ...
    ► 11 - Flutter Forget Screen • Flutter Forget Passwor...
    ► 12 - Flutter OTP Design • Flutter OTP Verificati...
    ► 13 - Flutter Dashboard • Flutter UI Design Tuto...
    ▬▬▬▬▬▬▬▬▬▬ FIREBASE ▬▬▬▬▬▬▬▬▬▬
    ► 14 - Setup Firebase in Flutter • Simplest way to Setup ...
    ► 15 - Firebase Authentication • Flutter Firebase Authe...
    ► 16 - Firebase Phone No Auth • Flutter Firebase Phone...
    ► 17 - Flutter Profile UI • Flutter Profile Page U...
    ► 18 - Store Data in Firestore • How to store data in F...
    ► 19 - Verify Email in Flutter • Verify Email in Fireba...
    COURSES
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ► FLUTTER CRASH COURSE • Flutter Crash Course f...
    ► LOGIN APP with GETX • Flutter Login App - UI...
    ► E-COMMERCE APP • Professional Flutter E...
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    FOLLOW US ON SOCIAL MEDIA!
    💻 Facebook: / codingwithtea
    💻 Instagram: / coding_with_tea
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    SUPPORT
    To support the creation of a free content please visit:
    ► Subscribe th-cam.com/users/Codingwithtea...
    ►► Support codingwitht.com/support-the-c...
    #firestore #flutterfirebase #firebaseauth #codingwithT
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @PromoHands
    @PromoHands ปีที่แล้ว +13

    Not able to update the records. SOLUTION:
    This was not working:
    Just like Taimoor described I created UserModel in UpdateProfileScreen in ElevatedButton (to call updateRecord function in ProfileController). But it didn't work. The reason that this did not include document ID and thus giving error on updating when it tries to find the record in firebase to update.
    This is the solution I found:
    Add this variable in if(snapshot.hasdata) block: final id = TextEditingController(text: user.id);
    And then add this in UserModel in ElevatedButton: id: id.text,
    Now when the UserModel is passed to controller it will contain document ID. Thus now the record will be found and updated.

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

      Thank you. That did it.

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

      Thank you, it works well. I got the same issue

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

      Thanks man you save my day

    • @user-ny8hw3iw2s
      @user-ny8hw3iw2s 10 หลายเดือนก่อน

      Thank you so much!

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

      hey bro can you pass your code pls i have been stuck 2 days

  • @user-cb2zg8pl4v
    @user-cb2zg8pl4v 5 หลายเดือนก่อน

    جزاك الله خيرا
    God bless you

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

      Ameen Thanks

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

    What an amazing series! Thank you very much for it.
    I only wish there was an update regarding the form field update issue 😢

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

      I will try to do it 🤠 ASAP.

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

      check my comment ive added the code

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

    what I need to return at the end of the FutureBuilder? it is giving me an error with that part

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

    hey may you plz help me here, when i click the edit profile elevated button after signing in it show the circular progress indicator. why is that happening, and what could be the solution?

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

    Great tutorial, thank you for sharing your expertise! I learned a lot about Flutter from this video and can't wait to start implementing some of these techniques in my own projects.
    I do have a question - do you think it would be possible to add biometric authentication to the project? It would be really helpful to learn how to incorporate that into my own apps. Thank you again for such a great tutorial!

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

      I will try to add it in up coming videos.

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

      & Thank you for your love and support

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

    Waiting for your next videos..🙏

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

      Thank you dear. Coming soon 🙂

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

    very thankful for your time Waiting for your next videos

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

    Assalamu alaikum brother @CodingWithT this playlist is the by far most organized and profession playlist to implement general purpose login/signup module.
    My question is that are you going to complete this playlist in near future.
    Some topics like
    1. forget password backend implementation.
    2. Google Signup and login
    3. login and signup validation(e.g. already registered user should see msg that user already exist and if new user tries to login he/she should see msg create account first).
    P.S : I know above topic can be implemented with the help of internet but I am looking for your amazing folder structure, design and modular coding.

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

      Thank you so much dear. Yes I'll definitely do that

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

    How long before we could see your delete user video, so far this is looking awesome, but that functionality had me stuck since you released this video :(

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

    Thank you very much for this wonderful playlist it helped me a lot, may Allah bless you

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

      You're welcome. I am glad you it's helpful.

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

    Asalamoalaikum Taimoor. You are doing a great contribution from Pakistan. Well done. We are getting good stuff from you. Thanks for that. Keep it up. Waiting for your next video in this series.
    May you please summarize the whole app process so far. For example we have manually bypassed the OnBoarding screens. But in real app they should not work like that. There is a need for summarizing the whole app, so that app will start from fresh. From Splash > OnBoarding > Welcome > Login/SignUp > DashBoard. Then there should be some way for the app to remember if a user has seen the OnBoarding screens, then app should not show it again.
    JazakAllah bro!

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

      WaS dear,
      Thank you so much and I'm happy & Proud to do this.

  • @faruktabutcuogullar2614
    @faruktabutcuogullar2614 9 วันที่ผ่านมา

    I missed where we did the all users page. What video was it in?

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

    I Soo much love your videos bro. Please I have a request to ask, please do a video of dependent drop-down menu item in flutter

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

      I'm too glad that you love my content 🥰. Will definitely do that

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

    I updated email and password , and when I tried to login with the updated email and password I couldnt, because it is not updated in authentication. is there way we can update authentication ?

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

    taimoor bhai, shukriya ek list/recyclerview mein bhi data laake pls CRUD example/demo showcase karein

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

      I will do that too. 😃

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

    I am not able to fetch the id . if i use phone number insted it is possible but ID is null why

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

    hey hi how are you? Decidedly here is a new problem, the data on cloud firestore does not want to be updated with the error when I click on the button: Stream closed with status: Status{code=NOT_FOUND, description=No document to update: projects/moshimoshicatwangestion/ databases/(default)/documents/Users/25ey0ZbeJtFOmQjcnB8y, cause=null}.

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

      Hi, 👋
      It's because the document that you are trying to update doesn't exist in the firestore

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

    Walaikumassalam sir

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

    Salam Sir, You are a life saver. Can you tell me about the specs of your laptop?

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

      I've both hp and MacBook.
      HP is Core i7, 16GM RAM, 1 TB SSD

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

    I'm currently learning android development with kotlin & xml
    should I need to learn flutter or dart ?❓⁉️

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

      Dear that's native language and it has its own benefits.
      Whereas if you see yourself as a freelancer or even an entrepreneur, you should see the best option and as Flutter provides a single code base for android, IOS, Web, Linux, Windows so why not!

  • @karthikgowd7689
    @karthikgowd7689 ปีที่แล้ว +4

    Same Video Post In Java Plz Bro

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

    sir please do one example with riverpod or provider with feature bases structure thank you

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

    can you post a video to update the profile picture as well? and also if for the User collection, there is user id xyz, I want to create one more collection for each user, for example each user has a collection in which their interests are stored, how to do that?

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

      I'm about to start the backend of an ongoing e-commerce app. So, must watch that. I'll cover in-depth knowledge of Firestore.
      It'll also have a Collection of Users and inside that we will have 2 more SubCollections Addresses and Orders.

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

    There is a problem when updating the email or password. It also requires updating the authentication. I read in the documentation that it is necessary to re-authenticate. Do you have a way without forcing the user to enter the login data again?

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

      I think there might be some confusion.
      Firebase Authentication is a different thing and Firebase Firestore is a completely different thing.
      You don't have to even verify once to store read updates or delete data. Just check your connection and that's it 😊

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

      Yes, this is true. I think I did not convey my meaning correctly. For example, like the video, we update the user name or mobile number and there is no problem, but when updating the email or password, it is updated only in the Fire store, not in Firebase Authentication. How do I solve this problem ? Because when the user updates his email, he cannot log in to the account with the new email because it did not update in Firebase Authentication.@@CodingwithT

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

    I cant use both controller and initialvalue in textFormField why?

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

      Not sure

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

    hello sir honestly i have problem when i try to change the data in update profile screen the page is relodging , i follow all your coerce its first time I find problem in your code honestly , C J add solution but this is need to change from stateless to Stateful i think its not good idea because we using GetX in this coerce , i hope you can help . appreciate

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

      Don't worry dear,
      There are things we need to address. Due to the add, update, and delete, screen cannot be reloaded. There must be some call that you are making to reload the screen.
      You can share your code with me and I'll check that. 😃

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

    Hi if I buy the code will I get future update that is when you make the dashboard

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

      Hi dear, it's just a login signup with backend but just as an addon I've created a dashboard, profile and so on.

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

      @@CodingwithT After purchasing I am getting a error please help. I have mailed you.

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

    Sir, please show us how to create the admin app.🙏🏽

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

    Can you please tell me how to delete that profile data from cloud firestore ?

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

      There is a simple delete query like other queries to delete any record.

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

    Hi sir, I want to know When will the next video come back? i am waiting for it sir?

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

      Hi 👋, Soon will start the videos 😌

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

      @@CodingwithT thanks you.😊😊

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

    Just purchased your pack and it wouldn't let me download it. Can you please see to this???

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

      Please download the file from GDrive link

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

      @@CodingwithT Hi There! I tried, but kept giving me the error, "Invalid download link. Go to shop" then when I clicked the other link it said Access Denied to Drive file. Thanks for your help!

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

      @@CodingwithT I refunded it cause I didn't know how to fix it, but would happily re-purchase if we can get to work. Thank you!

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

      I've not received your request to access permissions. But no worries I'll look into it and you can purchase again after 3 to 4 hours 😃✌️

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

      @@CodingwithT Thanks!! You're great! Love the tutorials! Will definitely try to buy it again soon!

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

    Good series, but I think this is not the proper way, you should store the user data in Users collection based on the user id stored in the authentication, both the id should be same, and email and password should be only in authentication and rest of the user details in Users collection. During the update password should be updated in the authentication. I think no need to store email and password again in Users collection. Please correct me if I am wrong.

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

      You are totally right dear. But the thing is that this is the basic course and the main aim was to only teach people how to do CRUD.
      A new Proper e-commerce app series is coming in which all questions will be addressed.
      Thank you 😊

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

      @@CodingwithT My intention was not to correct you, sorry if you felt like that. My intention was to correct my knowledge and get advice from you if I am wrong. Thank you soo much. Eagerly waiting for the e-commerce app series.🙂

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

    Website is not getting updated along with videos

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

      I'm actually busy somewhere else. Will do that from Monday. 😊

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

      @@CodingwithT bro please show login authentication process

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

      @@bishal8818 Estoy de acuerdo contigo ya que solo nos muestras el SignUp

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

    flutterflow use