fix: null error
This commit is contained in:
@ -282,9 +282,10 @@ class VideoStat extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Row(
|
||||
children: [
|
||||
StatView(view: videoItem.stat.view),
|
||||
if (videoItem.stat.view != null) StatView(view: videoItem.stat.view),
|
||||
const SizedBox(width: 8),
|
||||
StatDanMu(danmu: videoItem.stat.danmu),
|
||||
if (videoItem.stat.danmu != null)
|
||||
StatDanMu(danmu: videoItem.stat.danmu),
|
||||
if (videoItem is RecVideoItemModel) ...<Widget>[
|
||||
crossAxisCount > 1 ? const Spacer() : const SizedBox(width: 8),
|
||||
RichText(
|
||||
|
Reference in New Issue
Block a user