Тёмный
No video :(

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

Coding With T
Подписаться 77 тыс.
Просмотров 67 тыс.
50% 1

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.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 ru-vid.com...
►► Support codingwitht.com/support-the-c...
#firestore #flutterfirebase #firebaseauth #codingwithT

Опубликовано:

 

14 дек 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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 🥰
@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?
@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?
@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?
@pramodudayanga7102
@pramodudayanga7102 Год назад
thanks for your guidline for develop fully function app
@CodingwithT
@CodingwithT Год назад
You welcome
@usertuserb7057
@usertuserb7057 Год назад
thanks you very much brother. please make a tutorial about Sqlite.
@CodingwithT
@CodingwithT Год назад
Sure Buddy 😃 & welcome 🤗
@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
@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 😢
@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.
@Noumandev
@Noumandev 8 месяцев назад
bro last pa getUserGet ka kya kiya ha ?
@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?
@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"); } }
@chubynwoke8958
@chubynwoke8958 9 месяцев назад
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 9 месяцев назад
Yes I'm already creating an ecommerce in which you'll learn in detail about Firebase and more professional ways to handle that.
@akashverma4017
@akashverma4017 11 месяцев назад
But you haven't shown the AuthenticationRepository in this video
@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
@siddheshgajare6013
@siddheshgajare6013 Год назад
After clicking on the edit profile the loading screen is continuing??
@sirinechieb7640
@sirinechieb7640 2 месяца назад
any solutions u got?
@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
@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.
@muhammadfurqan917
@muhammadfurqan917 Год назад
AoA sir apki website bhe flutter mein bani hui hai?
@Hamza-yq7sj
@Hamza-yq7sj Год назад
Will you implement forget password back-end?
@CodingwithT
@CodingwithT Год назад
I'll try 😃
@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
@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.
@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.
@SGZGamer
@SGZGamer 11 месяцев назад
i am getting issues not getting the email data is not showing
@sirinechieb7640
@sirinechieb7640 2 месяца назад
did you find a solution?
@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
@SGZGamer
@SGZGamer 10 месяцев назад
brother can you plz help me in this
@CodingwithT
@CodingwithT 10 месяцев назад
Yeah sure
@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. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--NQWNy-5i2E.html
@meenamehboob4059
@meenamehboob4059 7 месяцев назад
@@CodingwithT Thank you ❤️
@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
@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
@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❤
Далее
How I mastered Leetcode the unfair way
8:02
Просмотров 21 тыс.