How can i get document id in flutter

Issue How can i get document id which ‘content’ is ‘test2’ ? enter image description here i try like this.. but the condition does not work. ref.where(ref.doc(‘content’) == ‘test2’).get().then((QuerySnapshot snapshot){ snapshot.docs.forEach((document){ print(document.id); }); }); How can I get document id

Continue reading

Google Cloud Functions: Return valid JSON

Issue I´m trying to call a Google Cloud Function from my Flutter App using the cloud_functions package. This is my Cloud Function: export const helloWorld = functions.region(‘europe-west1’).https.onRequest((request, response) => { response.status(200).json({ message: “Hello World!” }); }); And this is my

Continue reading

Google Cloud Functions: Return valid JSON

Issue I´m trying to call a Google Cloud Function from my Flutter App using the cloud_functions package. This is my Cloud Function: export const helloWorld = functions.region(‘europe-west1’).https.onRequest((request, response) => { response.status(200).json({ message: “Hello World!” }); }); And this is my

Continue reading