opt: stat组件传参

This commit is contained in:
guozhigq
2024-09-11 20:25:40 +08:00
parent c60fd6a73e
commit 95a452dea8
12 changed files with 73 additions and 48 deletions

View File

@ -287,9 +287,9 @@ class VideoStat extends StatelessWidget {
Widget build(BuildContext context) {
return Row(
children: [
StatView(theme: 'gray', view: videoItem.stat.view),
StatView(view: videoItem.stat.view),
const SizedBox(width: 8),
StatDanMu(theme: 'gray', danmu: videoItem.stat.danmu),
StatDanMu(danmu: videoItem.stat.danmu),
if (videoItem is RecVideoItemModel) ...<Widget>[
crossAxisCount > 1 ? const Spacer() : const SizedBox(width: 8),
RichText(