I'm trying to add a hover effect to the list tile. I have tried wrapping it up in a Material widget to enable it. Tile color works perfectly but hovercolor is not working. Please suggest some ideas.
Just a snippet of the code
return Container(
child: ListView.builder(
itemCount: listdata.length,
itemBuilder: (context, index) {
return Material(
child: ListTile(
shape:
const Border(bottom: BorderSide(width: 1, color: Colors.white)),
hoverColor: Colors.red,
tileColor: Colors.blueAccent,
title: Text(listdata[index]['data'].toString()),
),
);
},
));