fix: Fixed listtile splash

This commit is contained in:
Deven Joshi
2020-11-24 14:21:08 +05:30
parent d9507214d7
commit 8640f2b4f9
+15 -12
View File
@@ -152,19 +152,22 @@ class ImageActionsModal extends StatelessWidget {
color: Colors.black,
);
return ListTile(
dense: true,
title: Text(
title,
style: color == null ? titleStyle : titleStyle.copyWith(color: color),
return Material(
child: InkWell(
onTap: onTap,
child: ListTile(
dense: true,
title: Text(
title,
style: color == null ? titleStyle : titleStyle.copyWith(color: color),
),
leading: Icon(
iconData,
color: color ?? StreamChatTheme.of(context).primaryIconTheme.color,
size: 24.0,
),
),
),
leading: Icon(
iconData,
color: color ?? StreamChatTheme.of(context).primaryIconTheme.color,
size: 24.0,
),
onTap: onTap,
tileColor: Colors.white,
);
}
}