fix(ui): revert wrapping ChannelPreview in a DecoratedBox because of Slidable
This commit is contained in:
@@ -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),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user