do not wrap custom channel preview builder to avoid weird behaviour

This commit is contained in:
Salvatore Giordano
2020-12-07 13:02:10 +01:00
parent a20409c534
commit ac4a60ebb7
+3 -22
View File
@@ -316,28 +316,9 @@ class _ChannelListViewState extends State<ChannelListView>
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(