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,13 +584,18 @@ class _ChannelListViewState extends State<ChannelListView> {
), ),
], ],
child: widget.channelPreviewBuilder?.call(context, channel) ?? child: widget.channelPreviewBuilder?.call(context, channel) ??
ChannelPreview( DecoratedBox(
decoration: BoxDecoration(
color: chatThemeData.channelListViewTheme.backgroundColor,
),
child: ChannelPreview(
onLongPress: widget.onChannelLongPress, onLongPress: widget.onChannelLongPress,
channel: channel, channel: channel,
onImageTap: () => widget.onImageTap?.call(channel), onImageTap: () => widget.onImageTap?.call(channel),
onTap: (channel) => onTap(channel, widget.channelWidget), onTap: (channel) => onTap(channel, widget.channelWidget),
), ),
), ),
),
); );
} }