Copyright 2024 - Custom text here

ตัวอย่าง สั้นๆ กระชับๆ การดึงข้อมูล จาก Cloud Firestore Firebase ด้วย Flutter

Screen Shot 2563 10 10 at 105745

โจทย์เป็นอย่างนี้นะ มี Collection ชื่อ produces มี Docs ชื่อ dummy และ field ต่างๆ ตามภาพ

Screen Shot 2563 10 10 at 124124

โค้ดเป็นอย่างนี่ สิ่งแรก initializeApp.ก่อน และ สร้าง Snapshots แบบนี่ 

Screen Shot 2563 10 10 at 124005

ผลลัพธ์ มาสเตอร์ ให้ print บน Console แบบนีครับ น่าจะนำไปประยุคได้นะครับ

คอร์ส สอนโปรเจ็คแอนดรอยด์ ตัวต่อตัว

privateProject2019v1

คอร์ส เบสิกแอนดรอยด์ สอน ตัวต่อตัว

privateAndroid2019v1

คอร์ส iOS สอน ตัวต่อตัว

privateIos2019V1

คอร์ส Flutter สอน ตัวต่อตัว

privateFlutter2019v1

f t g