From ac4a60ebb75d52f57fabb1efad324c1a74609f09 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Mon, 7 Dec 2020 13:02:10 +0100 Subject: [PATCH] do not wrap custom channel preview builder to avoid weird behaviour --- lib/src/channel_list_view.dart | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/lib/src/channel_list_view.dart b/lib/src/channel_list_view.dart index d6621d51..33988b92 100644 --- a/lib/src/channel_list_view.dart +++ b/lib/src/channel_list_view.dart @@ -316,28 +316,9 @@ class _ChannelListViewState extends State builder: (context) { Widget child; if (widget.channelPreviewBuilder != null) { - child = Stack( - children: [ - widget.channelPreviewBuilder( - context, - channel, - ), - Positioned.fill( - child: Material( - color: Colors.transparent, - child: InkWell( - onTap: () { - onTap(channel, widget.channelWidget); - }, - onLongPress: widget.onChannelLongPress != null - ? () { - widget.onChannelLongPress(channel); - } - : null, - ), - ), - ), - ], + child = widget.channelPreviewBuilder( + context, + channel, ); } else { child = ChannelPreview(