diff --git a/lib/widget/selectable_item_stream_list_mixin.dart b/lib/widget/selectable_item_stream_list_mixin.dart index 05f57ba6..f3dff47c 100644 --- a/lib/widget/selectable_item_stream_list_mixin.dart +++ b/lib/widget/selectable_item_stream_list_mixin.dart @@ -325,28 +325,26 @@ class _SelectableItemWidget extends StatelessWidget { Positioned.fill( child: Container( color: AppTheme.getSelectionOverlayColor(context), - ), - ), - if (isSelected) - Positioned.fill( - child: Align( - alignment: Alignment.center, - child: Icon( - Icons.check_circle_outlined, - size: 32, - color: AppTheme.getSelectionCheckColor(context), + child: Align( + alignment: Alignment.center, + child: Icon( + Icons.check_circle_outlined, + size: 32, + color: AppTheme.getSelectionCheckColor(context), + ), ), ), ), - Positioned.fill( - child: Material( - type: MaterialType.transparency, - child: InkWell( - onTap: onTap, - onLongPress: onLongPress, + if (onTap != null || onLongPress != null) + Positioned.fill( + child: Material( + type: MaterialType.transparency, + child: InkWell( + onTap: onTap, + onLongPress: onLongPress, + ), ), ), - ) ], ); }