fix(ui): revert wrapping ChannelPreview in a DecoratedBox because of Slidable

This commit is contained in:
Salvatore Giordano
2021-08-18 12:22:56 +02:00
parent 763d600e60
commit 84fccf2c63
@@ -584,11 +584,16 @@ class _ChannelListViewState extends State<ChannelListView> {
), ),
], ],
child: widget.channelPreviewBuilder?.call(context, channel) ?? child: widget.channelPreviewBuilder?.call(context, channel) ??
ChannelPreview( DecoratedBox(
onLongPress: widget.onChannelLongPress, decoration: BoxDecoration(
channel: channel, color: chatThemeData.channelListViewTheme.backgroundColor,
onImageTap: () => widget.onImageTap?.call(channel), ),
onTap: (channel) => onTap(channel, widget.channelWidget), child: ChannelPreview(
onLongPress: widget.onChannelLongPress,
channel: channel,
onImageTap: () => widget.onImageTap?.call(channel),
onTap: (channel) => onTap(channel, widget.channelWidget),
),
), ),
), ),
); );