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
Answer Checked By – Marie Seifert (FlutterFixes Admin)