1

I am trying to do a carousel view by taking images from firebase. I am able to get the images in a listView and am able to successfully place them in cards, but unfortunately im not able to scroll the list view.

return Container( width: double.infinity, height: 300, child: ListView( scrollDirection: Axis.horizontal, children: snapshot.data!.docs.map((DocumentSnapshot document) { Map<String, dynamic> data = document.data()! as Map<String, dynamic>; return Padding( padding: const EdgeInsets.all(8.0), child: Center( child: Stack( children: [ SizedBox( height: 200, child: Card( elevation: 10, child: ClipRRect( borderRadius: BorderRadius.circular(4), child: Image.network(data['image'],width: 400,fit: BoxFit.fill,)), ), ), ], ), ), ); }).toList(), ), ); 

Any help?

1

1 Answer 1

0

Container > SingleChildScroolView > ListView try

Sign up to request clarification or add additional context in comments.

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.