How to store data in Firestore Flutter - Cloud Firestore 2023

  Рет қаралды 85,168

Coding With T

Coding With T

Жыл бұрын

In this flutter firebase tutorial, we will learn to store data in Cloud Firestore Firebase.
PLAYLIST: • Flutter Login App - UI...
In this video will perform the "Create" of Firebase Firestore CRUD. To store the data in firestore, we will first get the user profile data from the Signup/register screen and convert it to Model with toJson().
Also we will create a separate User Repository to perform all the firebase cloud queries.
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 kzfaq.info...
►► Support codingwitht.com/support-the-c...
#firestore #flutterfirebase #firebaseauth #codingwithT

Пікірлер: 72
@taneshasimeon2202
@taneshasimeon2202 Жыл бұрын
Honestly one of the best tutorials, i love how you explain things its very clear and saves me alot of time. i have subscribed and excited to see more content of yours!
@CodingwithT
@CodingwithT Жыл бұрын
Thank you so much 😊. I am glad they are helpful and will try to keep the same 😆
@haroonrehman8156
@haroonrehman8156 Жыл бұрын
Thanks buddy your content helps us a lot. ❤🎉
@CodingwithT
@CodingwithT Жыл бұрын
I'm glad it's helpful 😁
@NimbulBlack
@NimbulBlack Жыл бұрын
I dont get a recording under Authentication of the Phone number or user also get an error on device "Something went wrong" But the user is created in the Cloud firestore db - and can be created with same info multiple times.
@ishanmaddumage
@ishanmaddumage Жыл бұрын
awesome channel for learn about flutter, i really enjoy. i have a request please give us to video series about all firebase functions. notification, chat ,etc
@CodingwithT
@CodingwithT Жыл бұрын
I'm thinking 🤔 about it. I guess i should create that series.
@taneshasimeon2202
@taneshasimeon2202 Жыл бұрын
@@CodingwithT definitely do it !
@budgeter4807
@budgeter4807 Жыл бұрын
Hi @CodingWithTea. The tutorial is very awesome. A piece of advice, please don't include complex architectures when giving tutorials. It might render difficulties for beginners to understand Let's keep the good work sir!
@CodingwithT
@CodingwithT Жыл бұрын
Noted 😃
@princeedward9160
@princeedward9160 Жыл бұрын
hi just wanted ask i follow the tutorial as is but both email and phone number are not saved in authentication but only the number and not the email
@feilongiskandar3533
@feilongiskandar3533 Жыл бұрын
masyAllah the best bro
@CodingwithT
@CodingwithT Жыл бұрын
Thank you again 😌
@fatimaabubakarsadiq7834
@fatimaabubakarsadiq7834 Жыл бұрын
Nice
@CodingwithT
@CodingwithT Жыл бұрын
Thanks ✌️
@abelasabou9104
@abelasabou9104 Жыл бұрын
Hello, i followed all your tutorials, but i can't figure out how to store the uid in firestore along side with the informations of the signup form, please can you help me?
@tbcop9898
@tbcop9898 11 ай бұрын
it works but when it reloads it goes back to the login screen
@user-kv8bw7pk4x
@user-kv8bw7pk4x 10 ай бұрын
Honesstly thiss tutorial is amazing, i just have 1 problem , when using the otp verificatinocode after singingup , the identifier stored in the authentication in firebase is the phonumber not the email, so i am not able anymore to ssign in with email and password, isss there a way to link phonenumber and email together to be albe using any of them? Thankss ahead for any reply
@CodingwithT
@CodingwithT 10 ай бұрын
Thank you, to do this you have to first verify your email as well for authentication. So after signup when you verify the phone number. You can simply call email and password authentication function which will do the email password authentication also. If you want to do e-mail verification also then also send the email verification link to verify email and after that let the user log in using any method. Otherwise you can show them the message on the Login screen, 'Your email is not verified, please verify to use Email as a Login.
@fairuzfitrananda840
@fairuzfitrananda840 Жыл бұрын
Baraka allahu fik, may Allah bless you with happiness and good health🙏
@CodingwithT
@CodingwithT Жыл бұрын
Thank you so much 🥰😃
@rahulsahu-nk6bc
@rahulsahu-nk6bc Жыл бұрын
How to add two project in one
@user-dr2bf4mq1m
@user-dr2bf4mq1m 9 ай бұрын
Hello! I've been following this code from the start, sadly on this part I got the error snackbar instead despite following your instructions. Is there a work around on this?
@creative254tv
@creative254tv 2 ай бұрын
same
@kevinkinyua2259
@kevinkinyua2259 Жыл бұрын
hi can you add images as one of the data to be retrieved
@CodingwithT
@CodingwithT Жыл бұрын
Yes sure. Will create video on store and retrieve images
@TechyAmitIndia
@TechyAmitIndia 5 ай бұрын
please create a tutorial for login and registration with phone number with this project
@emirgunumdogdu9475
@emirgunumdogdu9475 Жыл бұрын
Hello, I came in this course so far by liking every video except this one, I understand it's your effort and I respect it. But in this video there is lack of explanatation, and many of the exception and error handling codes we dont have also phoneAuthentication
@emirgunumdogdu9475
@emirgunumdogdu9475 Жыл бұрын
So to summarize I am not able to complete the course, you know maybe I should be able to it on my own if I want to learn but once you follow someone elses code until %95 percent and it's hard to find the motivation to fix it. :(
@CodingwithT
@CodingwithT Жыл бұрын
Thank you for such a great message. I appreciate your honesty and will try to fix it. If there is still any confusion, You can contact me at support@codingwitht.com or WA +923178059528
@San_Germain
@San_Germain 7 ай бұрын
Hello, I got a problem, the user's data isn't storing on Firebase even tho I'm pointing to the database I think, do I have to put a path in the firebase? Because mines appears like Default and it doesn't have a name like yours, when I sign up it appears it succed but then failed, the two massages from exception appear and it doesn't store anything, please help :(
@CodingwithT
@CodingwithT 7 ай бұрын
I suggest you to go through these 2 to 3 videos of this playlist and you'll hopefully handle everything ❤️. Flutter Firebase Course | Firebase Mastery: kzfaq.info/sun/PL5jb9EteFAODGVTOQv8Ch-OS-19897E0V
@kevink398
@kevink398 9 ай бұрын
I cannot find the folder "src" in the lib directory. Any idea?
@CodingwithT
@CodingwithT 9 ай бұрын
It's just a folder which I created myself. If it's not there, it's Ok.
@kevink398
@kevink398 9 ай бұрын
Thank you for you reply!@@CodingwithT
@suhailmuhammed9100
@suhailmuhammed9100 8 ай бұрын
I am experiencing issues while registering , with data being sent to createUser (user document in cloud firestore) even when there's a validation error during regiteration, is there any solution ?
@CodingwithT
@CodingwithT 8 ай бұрын
You have to write return; when home validation is not completed. Currently you are missing I think the return statement inside the form validation so you just had to use the if statement and using the if statement you have to write if form not valid then in the brackets of the if simply return and that's it.
@suhailmuhammed9100
@suhailmuhammed9100 8 ай бұрын
@@CodingwithT ElevatedButton( onPressed: () { if (_formKey.currentState!.validate()) { Signupcontroller.instance.registerUser( controller.email.text.trim(), controller.password.text.trim()); final user = Usermodel( username: controller.username.text.trim(), email: controller.email.text.trim(), password: controller.password.text.trim()); Signupcontroller.instance.createUser(user); } else { ScaffoldMessenger.of(context).showSnackBar(SnackBar( content: Text( 'Please fill in all required fields.'))); } }, style: ElevatedButton.styleFrom( primary: Colors.indigo, ), child: Text("Register"), ), is it like this ?
@mrman4636
@mrman4636 Жыл бұрын
hello tea, please i got an email saying i have. 2 days. left for my firestore,what does it mean
@CodingwithT
@CodingwithT Жыл бұрын
You might have open rules for firebase firestore and they are just going to change the rules after 2 days. Firestore is free until you hit limits. So no need to be worried. 😁
@surajkarnati7600
@surajkarnati7600 Жыл бұрын
How to do login ? Please help . I am not able to use my login button
@CodingwithT
@CodingwithT Жыл бұрын
Have you called the login function the way we did for signup?
@Kelvin-xu7hl
@Kelvin-xu7hl Жыл бұрын
Dear @CodingWithTea I hope this message finds you in good health and high spirits. I wanted to take a moment to express my deepest gratitude for the incredible tutorials you have been providing on Flutter Login App development. Your dedication and expertise have made a profound impact on my learning journey, and I cannot thank you enough. Your tutorials have been nothing short of exceptional. Your clear explanations, step-by-step guidance, and attention to detail have made it so much easier for me to grasp the intricacies of building a Flutter Login App. I truly appreciate the time and effort you put into creating these tutorials, ensuring that even beginners like me can follow along and understand the concepts. Through your videos, you have not only taught me technical skills but also inspired me to push my boundaries and pursue my passion for app development. Your enthusiasm and passion for Flutter are contagious, and it has motivated me to dive deeper into this amazing framework. Your words of encouragement and practical tips have given me the confidence to explore new possibilities and experiment with different ideas. I want you to know that your contributions have made a significant difference in my learning experience. Thanks to your tutorials, I have been able to create my own Flutter Login App, which I'm proud to showcase. It is an accomplishment I wouldn't have achieved without your guidance. Once again, I am truly grateful for your commitment to sharing knowledge and empowering learners like me. You have made a positive impact not just on my technical skills, but also on my mindset and attitude towards learning. Please continue doing what you do best, as your tutorials are an invaluable resource for the Flutter community. Wishing you continued success in all your endeavors. You are an inspiration to aspiring developers like me, and I am eager to see what amazing content you'll create in the future.
@CodingwithT
@CodingwithT Жыл бұрын
Really an exceptional message dear. I'm really grateful for your love and support 💕
@quanvanmanh185
@quanvanmanh185 Жыл бұрын
i have a problem Exception has occurred. FirebaseException ([cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.) help me !
@CodingwithT
@CodingwithT Жыл бұрын
In most cases it means that your user is logged out and trying to access something that is not required. It also happens when we set rules in the firebase
@quanvanmanh185
@quanvanmanh185 Жыл бұрын
@@CodingwithT Thank you the problem has been solved
@CodingwithT
@CodingwithT Жыл бұрын
Ok
@ShaunyTravels.
@ShaunyTravels. 2 ай бұрын
T this is so complicated lol why cant firebase just make doing this easier wow !!!
@CodingwithT
@CodingwithT 2 ай бұрын
I am bit confused 😕, it’s easier or difficult?
@bishal8818
@bishal8818 Жыл бұрын
since you only show us the SignUp with firebase plz show login too
@CodingwithT
@CodingwithT Жыл бұрын
Dear, you just have to call Login the same way we did for signup
@surajkarnati7600
@surajkarnati7600 Жыл бұрын
Hey bishal did you get the login with firebase ?
@Attitudeprince541
@Attitudeprince541 6 ай бұрын
Hello sir i cant see my data in the cloud firestore
@CodingwithT
@CodingwithT 6 ай бұрын
Check the Updated Playlist of e-commerce and follow the backend section
@Hamza-yq7sj
@Hamza-yq7sj Жыл бұрын
i havev error SMS verification code request failed: unknown status code: 17010 null
@CodingwithT
@CodingwithT Жыл бұрын
I think your number is temporarily blocked due to too many verifications.
@Hamza-yq7sj
@Hamza-yq7sj Жыл бұрын
How i unblock?
@seatconnect224
@seatconnect224 Жыл бұрын
what if user offline?
@CodingwithT
@CodingwithT Жыл бұрын
You can use ConnectivityManager to handle the Internet state.
@user-du6fr8cj2n
@user-du6fr8cj2n Жыл бұрын
walekumassalam rehemetullahi barakatu
@mananmittal576
@mananmittal576 Жыл бұрын
My user data gets successfully stored inside firebase store but not available in the authentication table!! how can I resolve this?
@CodingwithT
@CodingwithT Жыл бұрын
Dear these are two different things. Firebase Authentication is used to authenticate and when users register via email, gmail, facebook etc then their data is being stored in authentication. Once the user is authenticated, we can store their data in firestore
@mananmittal576
@mananmittal576 Жыл бұрын
@@CodingwithT Thank you, I was able to understand it. I had to ask another question. How can i change the profile section ui according to the type of the user registered in the firebase? For ex. if I had two types - user and brand?
@CodingwithT
@CodingwithT Жыл бұрын
That's simple, keep the role entry in every user collection and in the code you can add a check if role == user do something
@ahmedrafaat7428
@ahmedrafaat7428 Ай бұрын
i need code please , i don t have money
@CodingwithT
@CodingwithT Ай бұрын
Please reach me at support@codingwitht.com or Whatsapp at +923178059528
@bobdaawid2218
@bobdaawid2218 Ай бұрын
@@CodingwithT please can i message you for the code as well? I am finding the phoneNo verification difficult. I keep getting something went wrong and I've tried as much as possible to resolve it but i am unable to. I currently do not have the money to purchase the code.
@GabrielWeck
@GabrielWeck Жыл бұрын
hey hello, I have a small error I put: final user = UserModel( email: controller.email.text.trim(), password: controller.password.text.trim(), fullName: controller.fullName.text.trim(), phoneNo: controller.phoneNo.text.trim(), ); SignUpController.instance.phoneAuthentication(user.phoneNo); but user.phoneNo shows as error
@GabrielWeck
@GabrielWeck Жыл бұрын
The argument type 'String?' can't be assigned to the parameter type 'String'.
@GabrielWeck
@GabrielWeck Жыл бұрын
I solved the problem by doing user.phoneNo! not sure it will work but we will try
@CodingwithT
@CodingwithT Жыл бұрын
Yes it'll work. Only need to add ! To handle null values. It's a null safety approach.
How to Fetch Data from Cloud Firestore in Flutter [2023]
16:24
Coding With T
Рет қаралды 64 М.
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 23 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 3,6 МЛН
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 4,4 МЛН
Firebase Auth Tutorial #15- Firestore Users Collection
12:54
Net Ninja
Рет қаралды 285 М.
1: Firebase integration | connect flutter app with firebase
8:32
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Рет қаралды 725 М.
Redis Crash Course
27:31
Web Dev Simplified
Рет қаралды 600 М.
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 11 МЛН
iOS 18 vs Samsung, Xiaomi,Tecno, Android
0:54
AndroHack
Рет қаралды 92 М.