I want to create a column of containers that have text on them based on the fields in my Database, however, both forEach and Map only works on collections. How do I go through the fields in a single document?
This gives: "The method 'map' isn't defined for the type 'Object'."
FutureBuilder(
future:
FirebaseFirestore.instance.collection("posts")
.doc(this.id).collection("tags").doc("tags").get(),
builder: (context, snapshot)
{
return Column(children: snapshot.data!.map((e)=> Container(child: Text(e))).toList());
};
),