add null check to channel list view
This commit is contained in:
@@ -231,13 +231,21 @@ class _ChannelListViewState extends State<ChannelListView> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ColoredBox(
|
child = LazyLoadScrollView(
|
||||||
color: ChannelListViewTheme.of(context).backgroundColor!,
|
onEndOfPage: () => _channelListController.paginateData!(),
|
||||||
child: LazyLoadScrollView(
|
child: child,
|
||||||
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<Channel> channels) {
|
Widget _buildListView(BuildContext context, List<Channel> channels) {
|
||||||
|
|||||||
Reference in New Issue
Block a user