fetch data from firestore
ฝัง
- เผยแพร่เมื่อ 7 ส.ค. 2022
- Fetch data from Firebase Cloud Firestore, and display it on a list on a Flutter app
Source code :
github.com/gitanjal/flutterfi...
How to add Firebase to a Flutter project? :
• How to Add Firebase to...
Add Google-login in a Flutter app using Firebase Auth:
• Add Google-login to a ... - วิทยาศาสตร์และเทคโนโลยี
great tutorial mate thak you
Glad you enjoyed it. Stay connected.
Thank you man!
Welcome buddy, Stay Connected.
thanks alot
Most welcome, stay connected.
Can we chain multiple where clause to firebase using isEqual
Yes you can. Please check the link below-
firebase.google.com/docs/firestore/query-data/queries#compound_queries
Sir i have collection and subcollection on my cloud firestore firebase then how i write code for that
Take a look at this video : th-cam.com/video/P5CvA3bvBeU/w-d-xo.html
And let me know if this solves your problem. Thanks for commenting, stay connected.
can you mke a video o collection with sub collection data firestore flutter????
Sure, I will make.
@@droidmonk4820 thanks
Extremely sorry the delay bro, I hope you are not waiting.
Still this video is for you-
th-cam.com/video/P5CvA3bvBeU/w-d-xo.html
how to add image in ListTile ?
Simply pass the Image widget to the property leading....
ListTile(
leading: Image.network(url),
title: Text('One-line with both widgets'),
trailing: Icon(Icons.more_vert),
),
You may like to watch this video to more about ListTile
th-cam.com/video/zv8OdSMXRUU/w-d-xo.html
@@droidmonk4820
ok thanks
but
if i want user add image in every list tile and save in firebase? what should i do?
You have to keep the image urls in a field in the documents of your collection and use those in the Image widgets.
Now to get the image urls -
step 1: You can use the package image_picker to pick an image from device/capture using camera
step 2: You have to store the images/files in "Firebase Storage" ( not cloud firestore) and
step 3: get their urls
step 4: store the urls in the corresponding documents of the cloud_firestore document
I shall create a video on this soon , so stay connected.
For now you may take a look at the link below --
firebase.google.com/docs/storage/flutter/upload-files
@@droidmonk4820
Very thanks
You're awsome
Keep going
And I'm waiting the video
Thanks again
Hi, I hope you have already got your job done.
But here is the video on - "How to upload images to Firebase and display them on the UI"
th-cam.com/video/u52TWx41oU4/w-d-xo.html&lc=UgxKV5LuvimyF4Oih414AaABAg