skip to Main Content

Flutter – make ListTile clickable and add a hovercolor

Widget generateReorderableList() { return Column( children: [ Stack( children: [ SizedBox( width: double.infinity, height: 600, //A modifier child: ReorderableListView( header: Column( children: [ Row( children: [ for (final item in headersList) Container( padding: const EdgeInsets.all(19.0), child: DefaultTextStyle( style: const TextStyle(…

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