From 8640f2b4f91b1376afa00115408747a44e74e729 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Tue, 24 Nov 2020 14:21:08 +0530 Subject: [PATCH] fix: Fixed listtile splash --- lib/src/image_actions_modal.dart | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/lib/src/image_actions_modal.dart b/lib/src/image_actions_modal.dart index 0328209e..1bfb6aa3 100644 --- a/lib/src/image_actions_modal.dart +++ b/lib/src/image_actions_modal.dart @@ -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, ); } }