Issue
So I'm coding a healthy social media app using Flutter and Firebase as my database. I want to have a filter button where users can filter content based on the 'BoardType' field(in the picture) Is there any way I can do this? Firebase screen
Solution
of course, you can do so using filters like:
FirebaseFirestore.instance
.collection('posts')
.where("BoardType", isEqualTo: "Book of the Month").get();
which is a future that returns the documents that match your request.
Answered By - tareq albeesh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.