I am trying to put FirestoreListView
inside ListView
but i recieve some errors.
My code sample:
ListView(
children: [
// Some stuffs here
FirestoreListView<Map<String, dynamic>>(
shrinkWrap: true,
physics: NeverScrollableScrollPhysics(),
query: usersQuery,
itemBuilder: (context, snapshot) {
Map<String, dynamic> user = snapshot.data();
return Text('User name is ${user['name']}');
},
)
],
),
The error I got:
The following assertion was thrown during performLayout():
RenderCustomMultiChildLayoutBox object was given an infinite size during layout.
After using FirestoreListView
inside SizedBox
with height it does not work as i want.