How to fetch a particular user's information from Cloud Firestore in Flutter

  Рет қаралды 19,833

Morsheda Jeba

Morsheda Jeba

Күн бұрын

It's a sequel of my previous video where I showed how to store user's information in Cloud Firestore. And In this video I've shown how to fetch a particular user's information from Cloud Firestore that we've stored back in our previous video.
If you haven't watch my previous video here's the link- • Simple login form desi...
Source code is available on github- github.com/Mor...
Medium- / morshedajeba

Пікірлер: 46
@faruqueaziz682
@faruqueaziz682 3 жыл бұрын
There are tons of tutorials available for stream builders, stream providers, and what not... but the basic printing of data from Firestore is shown nowhere. Thanks to you. At this moment, you're possibly my favorite person! Appreciate your work!
@morshedajeba69
@morshedajeba69 3 жыл бұрын
Thanks a lot for your appreciation ❤. It means so much to me.
@wahidahmedchowdhury9125
@wahidahmedchowdhury9125 2 жыл бұрын
I have watched a lot of tutorial on this topic and guess what! After 2days of searching, i found the best one!!! Thanks ❤❤
@davidwest28.official
@davidwest28.official Жыл бұрын
Thank you for presenting this content. I have wanted to know how to retrieve a single field from Firestore. You have shown that it is possible here. What I need to do now is discover the current method calls because Flutter has changed since the time of your recording. Many thanks 😊
@meetpatel1011
@meetpatel1011 2 жыл бұрын
Satisfied after this video already saw many of in yt and web but this help muchhhhhh more ❤❤ Thank you creator 💫💫
@KRISHNA-tf4tv
@KRISHNA-tf4tv 4 жыл бұрын
Thanks , But it seems that u are not using the latest Flutter Fire , Please Upgrade! Great ✌️✌️👍👍 I am your big fan and always thankful to you keep doing this hard work
@morshedajeba69
@morshedajeba69 4 жыл бұрын
Thank you so much for your concern & also glad to hear that ❤
@justbe_joe9765
@justbe_joe9765 Жыл бұрын
Thank you soo much ma'am this is what i needed
@mathangik179
@mathangik179 2 жыл бұрын
i was looking for this for so long! thank you so much
@is6063
@is6063 3 жыл бұрын
Great, i've been looking for this for hours, thanks brooo. :)
@morshedajeba69
@morshedajeba69 3 жыл бұрын
My pleasure ❤️
@apparatingtonowhere6007
@apparatingtonowhere6007 4 жыл бұрын
Great , Thanks For This🙏🙏
@morshedajeba69
@morshedajeba69 4 жыл бұрын
My pleasure ❤
@codewithsebastian
@codewithsebastian 2 жыл бұрын
Wow didn't know i would find something that makes more sense to me like this. By the way does the user details also show on the Authentication Dashboard in Firebase? or it only goes to Cloud Firestore? nice content anyway.
@anishgupta6139
@anishgupta6139 Жыл бұрын
You made my day! Great work
@kanykighoul3795
@kanykighoul3795 2 жыл бұрын
Thank you very much, This has helped me alot
@shouryapandey3003
@shouryapandey3003 2 жыл бұрын
wow i was looking this for a month great to i got thanks
@ramazandagl8466
@ramazandagl8466 Жыл бұрын
you save my day thanks a lot ! 🤩
@czogu5066
@czogu5066 Жыл бұрын
can u tell me why it displays me only part with "Email : " and users email is not showing here - like its blank ? i signed it in auth and it is in database?
@tanasedaniel54
@tanasedaniel54 3 жыл бұрын
thank you so much, you saved me
@morshedajeba69
@morshedajeba69 3 жыл бұрын
It's my pleasure
@xixstrix2260
@xixstrix2260 2 жыл бұрын
can you make a tutorial video to read a list of data from firestore with an ontap to the detail page?
@b.rajesh5041
@b.rajesh5041 2 жыл бұрын
Thanks a lot
@alfredjimmy5511
@alfredjimmy5511 Жыл бұрын
Thank uuu sooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo muchhhhhhhhhhhhhhhhhhhhhhhhh
@Qazi_Abbas
@Qazi_Abbas 3 ай бұрын
just listing cute voice,
@fawadmir6419
@fawadmir6419 3 жыл бұрын
Can you do the same work using Firebase realtime database........
@vyshnavtr2587
@vyshnavtr2587 2 жыл бұрын
Thanks
@mihirdharaiya8108
@mihirdharaiya8108 3 жыл бұрын
not able to use ds.data['email']; plz help
@morshedajeba69
@morshedajeba69 3 жыл бұрын
Check if the field name in that document is also 'email'(without quotation) or not.
@ashwinr475
@ashwinr475 2 жыл бұрын
data( )["email"] use this
@ashwinr475
@ashwinr475 2 жыл бұрын
data( )["email"] use this
@mohamedayman5240
@mohamedayman5240 Жыл бұрын
@@ashwinr475 you are a llife saver
@adityadwivedi8798
@adityadwivedi8798 2 жыл бұрын
It's still not working for me...
@rubikandil9357
@rubikandil9357 2 жыл бұрын
For example you have user1, user2, user3, user4, user5 and you have to get only user2, user3, user4 data or user1, user2 data how can you do that.
@sadamkhan-vv6dp
@sadamkhan-vv6dp 2 жыл бұрын
the currentUser data is accessed with passing USER-ID, rest you can fetch whole collection like any other collection.
@mahditaha2109
@mahditaha2109 2 жыл бұрын
Why i am getting null value? Knowing that i tried to print uid and it works but the email returned is null
@derricktv4700
@derricktv4700 Жыл бұрын
Probably because you have no email
@ibalajihariharan
@ibalajihariharan 3 жыл бұрын
displayName not working, how to retrieve the name of the profile from 'users' uid & email are working but not displayName, can you please help?
@morshedajeba69
@morshedajeba69 3 жыл бұрын
Have you added any field for storing the 'displayName' that you want to fetch? Cause you have to provide the field name for fetching that data. Like I have only two fields for every user as you can see, one is 'email' & another is 'uid'.
@shuvamgajurel7382
@shuvamgajurel7382 3 жыл бұрын
If we want to retrieve multiple data then how can we do so?? Please reply..
@morshedajeba69
@morshedajeba69 3 жыл бұрын
Say you have two more fields named- 'name' and 'age' of type string and integer respectively like I have 'email' and 'uid' fields of string type. Then you need to take two more variables as the field type to store the values you will fetch from these two fields like I have only taken myEmail to store the value of field 'email'.
@officialtrapremix
@officialtrapremix 2 жыл бұрын
​@@morshedajeba69 i did the same i have to store name and number so i took both string and declare it above like this //Declaration String myName; String myNumber; //in Fetch data code myName = ds.data['name']; myNumber = ds.data['number']; //services code (which i changed) (added this part) .setData({'email': user.email, 'uid': user.uid, 'name': user.name, 'number': user.number}) //debugging the app i am getting this error! NoSuchMethodError (NoSuchMethodError: Class 'FirebaseUser' has no instance getter 'name'. Receiver: Instance of 'FirebaseUser' Tried calling: name)
@PranshulAgr
@PranshulAgr 3 жыл бұрын
Please share the source code
@morshedajeba69
@morshedajeba69 3 жыл бұрын
@Pranshul Agrawal I have updated the description. Since I made this video a long ago, versions of the used packages like- firebase_auth and cloud_firestore might be old. Just learn the concept and use the updated versions of the packages.
@PranshulAgr
@PranshulAgr 3 жыл бұрын
@@morshedajeba69 okay
@officialtrapremix
@officialtrapremix 2 жыл бұрын
NoSuchMethodError (NoSuchMethodError: Class 'FirebaseUser' has no instance getter 'name'. Receiver: Instance of 'FirebaseUser' Tried calling: name) getting this error please help me solve this also is there any way to contact you as i am trying to make a project that has marks within 10 days i have to submit the project! so with your help i will not be stuck anywhere!
How to Fetch Data from Cloud Firestore in Flutter [2023]
16:24
Coding With T
Рет қаралды 67 М.
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Wian
Рет қаралды 8 МЛН
The Joker kisses Harley Quinn underwater!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 19 МЛН
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 21 МЛН
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 13 МЛН
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 551 М.
SegmentedButton (Widget of the Week)
1:27
Flutter
Рет қаралды 60 М.
We Built an App in 24 Hours [No Code]
11:56
Raw Startup
Рет қаралды 424 М.
flutter firebase send notification to specific user
6:04
dbestech
Рет қаралды 22 М.
35 Flutter Tips That Will Change Your Life
10:53
Flutter Mapp
Рет қаралды 301 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 568 М.
Flutter - Firebase #11 - Fetch Data from Firestore Database
9:45
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 273 М.
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Wian
Рет қаралды 8 МЛН