there is an array in every document which contains a map (list) of songs and i want to Stream (read) them here in this page but i get this error
type 'List<dynamic>' is not a subtype of type 'String'
body: StreamBuilder(
stream: Firestore.instance.collection('singers').snapshots(),
builder: (
context,
snapshot,
) {
*if statement*
return ListView.builder(
itemCount: snapshot.data.documents.length,
itemBuilder: (context, index) => SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.only(
left: 10, right: 10, top: 10, bottom: 0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
snapshot.data.documents[index]['songs list'],
style: TextStyle(
fontSize: 20, color: Colors.red[500]),
)
]),
),
),
)),
);
},
),
);
}
}
