opt: stat组件传参

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

View File

@ -266,17 +266,11 @@ class VideoContent extends StatelessWidget {
Row(
children: [
if (showView) ...[
StatView(
theme: 'gray',
view: videoItem.stat.view as int,
),
StatView(view: videoItem.stat.view as int),
const SizedBox(width: 8),
],
if (showDanmaku)
StatDanMu(
theme: 'gray',
danmu: videoItem.stat.danmaku as int,
),
StatDanMu(danmu: videoItem.stat.danmaku as int),
const Spacer(),
if (source == 'normal')
SizedBox(