skip to Main Content

Divider is not visible in horizontal list view flutter

Widget build(BuildContext context) { return ListView.builder( scrollDirection: Axis.horizontal, shrinkWrap: false, physics: const BouncingScrollPhysics(), itemBuilder: (context, int i) { return Center( child: Card( child: GestureDetector( child: Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start, mainAxisSize: MainAxisSize.min, children: const [ SizedBox( height: 15, width: 100,…

VIEW QUESTION

Flutter: Why is my listTile color being overwritten by the container color?

I have a listTile builder that returns this listTile. The color of the listTile, white, is overwritten by its parent. How do I stop this? return ListTile( key: Key(index.toString()), tileColor: Colors.white, title: Text(widget.userExercises[index].name), subtitle: Text("${widget.userExercises[index].reps} Reps"), trailing: Text("${widget.userExercises[index].sets} Sets"), onTap:…

VIEW QUESTION
Back To Top
Search