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

@ -203,13 +203,9 @@ class VideoContent extends StatelessWidget {
padding: const EdgeInsets.only(top: 2),
child: Row(
children: [
StatView(
theme: 'gray',
view: videoItem.cntInfo['play'],
),
StatView(view: videoItem.cntInfo['play']),
const SizedBox(width: 8),
StatDanMu(
theme: 'gray', danmu: videoItem.cntInfo['danmaku']),
StatDanMu(danmu: videoItem.cntInfo['danmaku']),
const Spacer(),
],
),