Firestore queries in Flutter

Issue

I’m finding it really hard to understand the syntax for queries for cloud_firestore in flutter.
I’ve not been able to make a single query for the past while and all my efforts to understand it are failing since there are different in many tutorials.
Is there any way anyone can help me with a simplified example for CRUD operations in firestore ?, especially with provider would be of more help.

Thanks in advance.

Solution

Basically all the CRUD operations in firestore will be asynchronous. So you should have minimum knowledge in async and await. Initialise firestore with the firebase_credential.json file. And call the methods for the CRUD operations.

CRUD operation in flutter using firestore

Answered By – sibabrat swain

Answer Checked By – Terry (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.