diff --git a/packages/stream_chat_flutter/lib/src/channel_list_view.dart b/packages/stream_chat_flutter/lib/src/channel_list_view.dart index 1cec9d5c..e3340ec7 100644 --- a/packages/stream_chat_flutter/lib/src/channel_list_view.dart +++ b/packages/stream_chat_flutter/lib/src/channel_list_view.dart @@ -231,13 +231,21 @@ class _ChannelListViewState extends State { ); } - return ColoredBox( - color: ChannelListViewTheme.of(context).backgroundColor!, - child: LazyLoadScrollView( - onEndOfPage: () => _channelListController.paginateData!(), - child: child, - ), + child = LazyLoadScrollView( + onEndOfPage: () => _channelListController.paginateData!(), + child: child, ); + + final backgroundColor = ChannelListViewTheme.of(context).backgroundColor; + + if (backgroundColor != null) { + return ColoredBox( + color: backgroundColor, + child: child, + ); + } + + return child; } Widget _buildListView(BuildContext context, List channels) {