No video

How to Fetch Data from Cloud Firestore in Flutter [2023]

  Рет қаралды 67,064

Coding With T

Coding With T

Жыл бұрын

In this flutter Cloud Firestore tutorial, we will learn to fetch data from Firestore in Flutter.
PLAYLIST: • Flutter Login App - UI...
We will fetch or retrieve 2 types of data from firebase firestore. Single Record of user and multiple list of users. We will also see how to display Firebase data using Future Builder Widget in Flutter and how can we use ListView.builder in Flutter to display List of records fetched from Cloud Firestore Firebase in 2023.
LOGIN APP PLAYLISTS
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► COMPLETE PLAYLIST: • Flutter Login App - UI...
► FIREBASE PLAYLIST: • Flutter Firebase Basic...
DOWNLOAD PROJECT
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► CODE & RESOURCES: codingwitht.co...
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 www.youtube.co...
►► Support codingwitht.co...
#firestore #flutterfirebase #firebaseauth #codingwithT

Пікірлер: 80
@deveshnarkhede7487
@deveshnarkhede7487 Жыл бұрын
Very Helpful video nice explanation, the application interface is very aesthetic! Keep posting such beautiful and helpful content :)
@CodingwithT
@CodingwithT Жыл бұрын
Thank you so much 🥰
@tomstevens6820
@tomstevens6820 3 ай бұрын
I get the error TypeError: Instance of 'UserModel': type 'UserModel' is not a subtype of type 'UserModel' any idea what I need to change?
@amarocp
@amarocp Жыл бұрын
Hello, Thanks for useful tutorial. I am getting following error - "type 'List' is not a subtype of type 'UserModel' in type cast" at FutureBuilder in update_profile_screen.dart. Can you help
@CodingwithT
@CodingwithT Жыл бұрын
Because the return type is a single Model named UserModel and you are receiving it in a list
@usefulone2094
@usefulone2094 Жыл бұрын
I have a similar error .. type "_Type" is not a subtype of type "UserModel" in type cast. Thanks for the tutorial & please help me 😢
@phumlaninxumalo8327
@phumlaninxumalo8327 Жыл бұрын
Hey Tea, you are awesome can you help me in this section. I cannot retrieve the data instead the CircularProgressIndicator keeps running forever
@CodingwithT
@CodingwithT Жыл бұрын
Thank you 😊. Can you share your debug state error or exception?
@phumlaninxumalo8327
@phumlaninxumalo8327 Жыл бұрын
@@CodingwithT there isn't any error, but i can't fetch the data for updating, the circularProgressIndicator keeps running forever
@BitBytes20
@BitBytes20 Жыл бұрын
In ProfileController, instead of of just calling _userRepo.getUserDetails(email); return the function like below getUserRecord(){ final email = _authRepo.firebaseUser.value?.email; if(email != null) { return _userRepo.getUserDetails(email); } else { Get.snackbar("Error", "Login to continue"); } }
@user-bh6fp1bh5z
@user-bh6fp1bh5z Жыл бұрын
hi, thanks a lot for this premium tutorial series! i do have an issue: when clicking on any TextFormField (inside the FutureBuilder), the FutureBuilder loads again 3 times and the keyboard closes again immediatly. Any suggestions?
@GabrielWeck
@GabrielWeck Жыл бұрын
hey thank you for all your videos, so on my phone it puts the CircularProgressIndicator on loop and now bad state: no element. ment try but I did not succeed, I realized that it is when I enter the email only, if I enter the name, telephone number and password it works but as soon as I add the email in data on the Firebase console it does not want thank you anyway you are awesome brother
@CodingwithT
@CodingwithT Жыл бұрын
It might be because of some mapping issue. Check your keys as they should be the same as the key in Firebase and also the way to fetch & retrieve.
@GabrielWeck
@GabrielWeck Жыл бұрын
@@CodingwithT I really didn't succeed so I removed the Email text form field for the moment no big deal
@pramodudayanga7102
@pramodudayanga7102 Жыл бұрын
thanks for your guidline for develop fully function app
@CodingwithT
@CodingwithT Жыл бұрын
You welcome
@sherazahmed8984
@sherazahmed8984 Жыл бұрын
Thank you for sharing such a nice tutorial. Can you tell me which extension are you using on VS for these lines indicating widget's child?
@usertuserb7057
@usertuserb7057 Жыл бұрын
thanks you very much brother. please make a tutorial about Sqlite.
@CodingwithT
@CodingwithT Жыл бұрын
Sure Buddy 😃 & welcome 🤗
@siddheshgajare6013
@siddheshgajare6013 Жыл бұрын
After clicking on the edit profile the loading screen is continuing??
@sirinechieb7640
@sirinechieb7640 3 ай бұрын
any solutions u got?
@akashverma4017
@akashverma4017 11 ай бұрын
But you haven't shown the AuthenticationRepository in this video
@chubynwoke8958
@chubynwoke8958 10 ай бұрын
The from snapshot method that is used to get the all the data from the database doesn't seem to work with nested models. Can you do a video when you are retrieving data from the a nested model in the database?
@CodingwithT
@CodingwithT 10 ай бұрын
Yes I'm already creating an ecommerce in which you'll learn in detail about Firebase and more professional ways to handle that.
@godeons
@godeons 4 ай бұрын
Please create a video on how to add user/admin access to an app. Thanks
@CodingwithT
@CodingwithT 4 ай бұрын
Noted!
@jeryngungan
@jeryngungan Жыл бұрын
can i make a login page ,when user login user will getuser own data from firebase ?
@CodingwithT
@CodingwithT Жыл бұрын
Login means authentication which are 2 different things and yes you can fetch user's stored data anytime
@PamyPamly
@PamyPamly Жыл бұрын
thanks for the tutorial. pls i have an error in this section. i was able to retrieve my data from db to the textform but the issue is if i click on the textform to change the text the CircularProgressIndicator starts loading for about 2secs and the keyboard won't come up for me to change the text, it continues like that. if i reload the app and come back to the profile it takes me back to my homepage and write on the logs "memory deleted" pls i need help on this pls ... looking forward to your quick response thanks
@saudalshehab9157
@saudalshehab9157 Жыл бұрын
I have the same problem did you find the solution for it?
@mawandenxumalo4901
@mawandenxumalo4901 Жыл бұрын
You're legend
@CodingwithT
@CodingwithT Жыл бұрын
Thank you 😊
@mawandenxumalo4901
@mawandenxumalo4901 Жыл бұрын
@@CodingwithT What could be the problem I'm getting "Bad state: no elements". on the update_profile_screen.
@shaikhalkama381
@shaikhalkama381 5 ай бұрын
while fetching regiterview data to profilescreen its showing error of Bad State, no elements
@shaikmujahid-hi5uk
@shaikmujahid-hi5uk 2 ай бұрын
Me also same bro did u get solution for that
@mdsakibhasan
@mdsakibhasan Жыл бұрын
Somehow I got this error on showing all user data '_InternalLinkedHashMap' is not a subtype of type 'QueryDocumentSnapshot' . How can I fix this ?
@CodingwithT
@CodingwithT Жыл бұрын
It's because you are not mapping the QueryDocuementSnapshot properly
@mdsakibhasan
@mdsakibhasan Жыл бұрын
@@CodingwithT Thank you ❤️. I got my problem solved .
@CodingwithT
@CodingwithT Жыл бұрын
That's awesome 🤩
@meenamehboob4059
@meenamehboob4059 7 ай бұрын
you did not pick image from gallery dynamically and not upload into firebase and fetch it. Kindly provide me if you already have done it
@CodingwithT
@CodingwithT 7 ай бұрын
Please watch this video for image uploading. kzbin.info/www/bejne/Y3-0iIGvYpqcaKc
@meenamehboob4059
@meenamehboob4059 7 ай бұрын
@@CodingwithT Thank you ❤️
@techietalks27
@techietalks27 Жыл бұрын
Heyy T, very nice tutorial But I am facing issue in fetching the details of the user I am getting "Error, Login to continue". Please guide me.
@CodingwithT
@CodingwithT Жыл бұрын
I think you're not Logged in as per the error you mentioned. Make sure you have logged in via Firebase Authentication before fetching Authentication record. Whereas Firestore don't need anything like Login.
@edsonhh
@edsonhh Ай бұрын
is it possible "where" with "like"?
@CodingwithT
@CodingwithT Ай бұрын
Like is not available in Firestore query. You can use other partial matches like... array-contains, array-contains-any, startAt, endAt etc
@Noumandev
@Noumandev 8 ай бұрын
bro last pa getUserGet ka kya kiya ha ?
@Hamza-yq7sj
@Hamza-yq7sj Жыл бұрын
Will you implement forget password back-end?
@CodingwithT
@CodingwithT Жыл бұрын
I'll try 😃
@greendiga
@greendiga Жыл бұрын
hi man i have a problems. Bad state: Too many elements FLUTTER on window profile. I will be grateful if you help♥
@CodingwithT
@CodingwithT Жыл бұрын
I think you are Keys: in your app and they are duplicated. Please look for duplicate keys and your error will be resolved.
@adityapatel1019
@adityapatel1019 10 ай бұрын
@@CodingwithT Hey I am not sure how to solve this error you help is much appreciated.
@muhammadfurqan917
@muhammadfurqan917 Жыл бұрын
AoA sir apki website bhe flutter mein bani hui hai?
@Abhigyan103
@Abhigyan103 Жыл бұрын
This was very helpful ! Can you upload this code as well ?
@CodingwithT
@CodingwithT Жыл бұрын
It's uploaded on codingwitht.com/flutter-login-app
@CodingwithT
@CodingwithT Жыл бұрын
I can see this one is missing. I will upload it in an hour
@user-gm2de1rq8x
@user-gm2de1rq8x Жыл бұрын
I am getting the error "expected a value of string,but got one of type null"
@CodingwithT
@CodingwithT Жыл бұрын
This means you are trying to pass a string value but inside that variable there is no string but a null.
@mrman4636
@mrman4636 Жыл бұрын
hey man just got the same error, ya. solved. it??
@mrman4636
@mrman4636 Жыл бұрын
found it. forgot i had some old accounts without usernames
@user-gm2de1rq8x
@user-gm2de1rq8x Жыл бұрын
@@CodingwithT why is it so
@user-gm2de1rq8x
@user-gm2de1rq8x Жыл бұрын
@@mrman4636 how
@SGZGamer
@SGZGamer 11 ай бұрын
i am getting issues not getting the email data is not showing
@sirinechieb7640
@sirinechieb7640 3 ай бұрын
did you find a solution?
@roms03
@roms03 7 ай бұрын
I am getting error when clicked on edit profile button. Error : bad state too many elements
@CodingwithT
@CodingwithT 7 ай бұрын
Because you are trying to call .single in some query or list but that value is getting more then 1 so try .first instead
@roms03
@roms03 7 ай бұрын
I have typed the same code just as yours.
@roms03
@roms03 7 ай бұрын
@@CodingwithT also you have incomplete videos. You didn't provided video for login button controller. I started the series and at the end i came to know that it is incomplete series
@roms03
@roms03 7 ай бұрын
@@CodingwithT answer me
@ikkekun
@ikkekun Жыл бұрын
what happened in 12:50 ???
@shaikhalkama381
@shaikhalkama381 5 ай бұрын
Bro iska hi aage continue login with phone and password jo info apun ne register krwayi whi se apne ko login krna hai using phone and password bnao na video I am stucked
@CodingwithT
@CodingwithT 5 ай бұрын
Jis Phone Number sy register kiya wo data get kr k compare kr k login karain. I will also make a video on it soon.
@faizanahmed8844
@faizanahmed8844 Жыл бұрын
Bro don't mind everyone follows your back to back tutorials but in this tutorial you removed otp authentication and you did not clear to everyone
@CodingwithT
@CodingwithT Жыл бұрын
Dear It's not removed, all I used is Email and Password authentication. Because all the authentications are the same.
@faizanahmed8844
@faizanahmed8844 Жыл бұрын
@@CodingwithT okay taimoor bahi but we are beginners and you cannot do this step in this video so thats why🥲 Thank you and Eid mubarak in advance taimoor bahi❤
@SGZGamer
@SGZGamer 11 ай бұрын
brother can you plz help me in this
@CodingwithT
@CodingwithT 11 ай бұрын
Yeah sure
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 26 МЛН
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 40 МЛН
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 44 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 3 МЛН
How to store data in Firestore Flutter - Cloud Firestore 2023
13:08
Coding With T
Рет қаралды 89 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 352 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 548 М.
Firestore Setup | To Do App | FlutterFlow for Beginners
6:39
FlutterFlow
Рет қаралды 16 М.
React Native vs Flutter in 2024 - Make the RIGHT Choice (Difference Explained)
10:31
Daniel Dan | Tech & Data
Рет қаралды 163 М.
Always Check for the Hidden API when Web Scraping
11:50
John Watson Rooney
Рет қаралды 618 М.
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 26 МЛН