mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
refa: video model (#523)
This commit is contained in:
committed by
GitHub
parent
bf464994df
commit
7a6085e923
@@ -616,9 +616,9 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
||||
StatView(
|
||||
context: context,
|
||||
theme: 'gray',
|
||||
value: !widget.loadingStatus
|
||||
value: Utils.numFormat(!widget.loadingStatus
|
||||
? videoDetail.stat?.view ?? '-'
|
||||
: videoItem['stat']?.view ?? '-',
|
||||
: videoItem['stat']?.view ?? '-'),
|
||||
size: 'medium',
|
||||
textColor: t.colorScheme.outline,
|
||||
),
|
||||
@@ -626,9 +626,9 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
||||
StatDanMu(
|
||||
context: context,
|
||||
theme: 'gray',
|
||||
value: !widget.loadingStatus
|
||||
value: Utils.numFormat(!widget.loadingStatus
|
||||
? videoDetail.stat?.danmu ?? '-'
|
||||
: videoItem['stat']?.danmu ?? '-',
|
||||
: videoItem['stat']?.danmu ?? '-'),
|
||||
size: 'medium',
|
||||
textColor: t.colorScheme.outline,
|
||||
),
|
||||
|
||||
@@ -57,14 +57,14 @@ class IntroDetail extends StatelessWidget {
|
||||
StatView(
|
||||
context: context,
|
||||
theme: 'gray',
|
||||
value: videoDetail!.stat!.view,
|
||||
value: Utils.numFormat(videoDetail!.stat!.view),
|
||||
size: 'medium',
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
StatDanMu(
|
||||
context: context,
|
||||
theme: 'gray',
|
||||
value: videoDetail!.stat!.danmu,
|
||||
value: Utils.numFormat(videoDetail!.stat!.danmu),
|
||||
size: 'medium',
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
|
||||
@@ -187,7 +187,7 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
|
||||
widget.videoIntroController.changeSeasonOrbangu(
|
||||
null,
|
||||
videoItem.bvid,
|
||||
videoItem.firstCid,
|
||||
videoItem.cid,
|
||||
IdUtils.bv2av(videoItem.bvid!),
|
||||
videoItem.cover,
|
||||
);
|
||||
|
||||
@@ -184,7 +184,7 @@ class _AiDetailState extends CommonCollapseSlidePageState<AiDetail> {
|
||||
children: [
|
||||
TextSpan(
|
||||
text:
|
||||
Utils.tampToSeektime(item.timestamp!),
|
||||
Utils.formatDuration(item.timestamp!),
|
||||
style: TextStyle(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
@@ -198,15 +198,8 @@ class _AiDetailState extends CommonCollapseSlidePageState<AiDetail> {
|
||||
tag: Get
|
||||
.arguments['heroTag'])
|
||||
.plPlayerController
|
||||
.seekTo(
|
||||
Duration(
|
||||
seconds: Utils.duration(
|
||||
Utils.tampToSeektime(
|
||||
item.timestamp!)
|
||||
.toString(),
|
||||
),
|
||||
),
|
||||
);
|
||||
.seekTo(Duration(
|
||||
seconds: item.timestamp!));
|
||||
} catch (_) {}
|
||||
},
|
||||
),
|
||||
|
||||
@@ -234,14 +234,15 @@ class _MediaListPanelState extends CommonSlidePageState<MediaListPanel> {
|
||||
StatView(
|
||||
context: context,
|
||||
theme: 'gray',
|
||||
value: item.cntInfo!['play'] as int,
|
||||
value: Utils.numFormat(
|
||||
item.cntInfo!['play']!),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
StatDanMu(
|
||||
context: context,
|
||||
theme: 'gray',
|
||||
value:
|
||||
item.cntInfo!['danmaku'] as int,
|
||||
value: Utils.numFormat(
|
||||
item.cntInfo!['danmaku']!),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user