fix: theme channel_list_view.dart background color in the proper place

This commit is contained in:
groovinchip
2021-07-19 12:16:48 -04:00
parent f904b3ed82
commit 423581c9d1
@@ -231,9 +231,12 @@ class _ChannelListViewState extends State<ChannelListView> {
); );
} }
return LazyLoadScrollView( return ColoredBox(
onEndOfPage: () => _channelListController.paginateData!(), color: ChannelListViewTheme.of(context).backgroundColor!,
child: child, child: LazyLoadScrollView(
onEndOfPage: () => _channelListController.paginateData!(),
child: child,
),
); );
} }
@@ -571,18 +574,13 @@ class _ChannelListViewState extends State<ChannelListView> {
}, },
), ),
], ],
child: DecoratedBox( child: widget.channelPreviewBuilder?.call(context, channel) ??
decoration: BoxDecoration( ChannelPreview(
color: chatThemeData.channelListViewTheme.backgroundColor, onLongPress: widget.onChannelLongPress,
), channel: channel,
child: widget.channelPreviewBuilder?.call(context, channel) ?? onImageTap: () => widget.onImageTap?.call(channel),
ChannelPreview( onTap: (channel) => onTap(channel, widget.channelWidget),
onLongPress: widget.onChannelLongPress, ),
channel: channel,
onImageTap: () => widget.onImageTap?.call(channel),
onTap: (channel) => onTap(channel, widget.channelWidget),
),
),
), ),
); );
} }