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

preview_player
Показать описание
In this Flutter firebase CRUD video, we will learn the Update part of CRUD in Firestore.
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
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

DOWNLOAD PROJECT
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

VIDEOS
▬▬▬▬▬▬▬▬▬▬ DESIGN ▬▬▬▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬ FIREBASE ▬▬▬▬▬▬▬▬▬▬

COURSES
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
FOLLOW US ON SOCIAL MEDIA!

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
SUPPORT
To support the creation of a free content please visit:

#firestore #flutterfirebase #firebaseauth #codingwithT
Рекомендации по теме
Комментарии
Автор

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.

PromoHands
Автор

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.

amanshaikh
Автор

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!

PromoHands
Автор

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

ThePilli
Автор

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

gurubhai
Автор

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

brainiactech
Автор

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!

mehditun
Автор

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 :(

AkumaGS
Автор

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

maba
Автор

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

sadaqatmustafa
Автор

very thankful for your time Waiting for your next videos

DiamondSoft
Автор

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

faruktabutcuogullar
Автор

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

muhammadarsalanmanzoor
Автор

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

sonnymmabotse
Автор

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

surrealdust
Автор

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?

phumlaninxumalo
Автор

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?

rajvi
Автор

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

SanskarKakani
Автор

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: databases/(default)/documents/Users/25ey0ZbeJtFOmQjcnB8y, cause=null}.

GabrielWeck
Автор

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 ?

suhailmuhammed