mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
win (#1240)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -483,7 +483,7 @@ class PgcIntroController extends CommonIntroController {
|
||||
videoDetail
|
||||
..value.title = episode.showTitle
|
||||
..refresh();
|
||||
videoPlayerServiceHandler.onVideoDetailChange(
|
||||
videoPlayerServiceHandler?.onVideoDetailChange(
|
||||
episode,
|
||||
cid.value,
|
||||
heroTag,
|
||||
|
||||
@@ -15,7 +15,7 @@ import 'package:PiliPlus/pages/video/introduction/pgc/controller.dart';
|
||||
import 'package:PiliPlus/pages/video/introduction/pgc/widgets/pgc_panel.dart';
|
||||
import 'package:PiliPlus/pages/video/introduction/ugc/widgets/action_item.dart';
|
||||
import 'package:PiliPlus/pages/video/introduction/ugc/widgets/triple_state.dart';
|
||||
import 'package:PiliPlus/utils/num_util.dart';
|
||||
import 'package:PiliPlus/utils/num_utils.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
@@ -418,7 +418,7 @@ class _PgcIntroPageState extends TripleState<PgcIntroPage>
|
||||
selectIcon: const Icon(FontAwesomeIcons.solidThumbsUp),
|
||||
selectStatus: introController.hasLike.value,
|
||||
semanticsLabel: '点赞',
|
||||
text: NumUtil.numFormat(item.stat!.like),
|
||||
text: NumUtils.numFormat(item.stat!.like),
|
||||
onStartTriple: onStartTriple,
|
||||
onCancelTriple: onCancelTriple,
|
||||
),
|
||||
@@ -431,7 +431,7 @@ class _PgcIntroPageState extends TripleState<PgcIntroPage>
|
||||
onTap: introController.actionCoinVideo,
|
||||
selectStatus: introController.hasCoin,
|
||||
semanticsLabel: '投币',
|
||||
text: NumUtil.numFormat(item.stat!.coin),
|
||||
text: NumUtils.numFormat(item.stat!.coin),
|
||||
),
|
||||
),
|
||||
Obx(
|
||||
@@ -446,7 +446,7 @@ class _PgcIntroPageState extends TripleState<PgcIntroPage>
|
||||
),
|
||||
selectStatus: introController.hasFav.value,
|
||||
semanticsLabel: '收藏',
|
||||
text: NumUtil.numFormat(item.stat!.favorite),
|
||||
text: NumUtils.numFormat(item.stat!.favorite),
|
||||
),
|
||||
),
|
||||
Obx(
|
||||
@@ -465,7 +465,7 @@ class _PgcIntroPageState extends TripleState<PgcIntroPage>
|
||||
onTap: () => introController.actionShareVideo(context),
|
||||
selectStatus: false,
|
||||
semanticsLabel: '转发',
|
||||
text: NumUtil.numFormat(item.stat!.share),
|
||||
text: NumUtils.numFormat(item.stat!.share),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -92,7 +92,7 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
|
||||
var res = await VideoHttp.videoIntro(bvid: bvid);
|
||||
if (res.isSuccess) {
|
||||
VideoDetailData data = res.data;
|
||||
videoPlayerServiceHandler.onVideoDetailChange(data, cid.value, heroTag);
|
||||
videoPlayerServiceHandler?.onVideoDetailChange(data, cid.value, heroTag);
|
||||
if (videoDetail.value.ugcSeason?.id == data.ugcSeason?.id) {
|
||||
// keep reversed season
|
||||
data.ugcSeason = videoDetail.value.ugcSeason;
|
||||
@@ -532,7 +532,7 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
|
||||
} else {
|
||||
if (episode is Part) {
|
||||
final videoDetail = this.videoDetail.value;
|
||||
videoPlayerServiceHandler.onVideoDetailChange(
|
||||
videoPlayerServiceHandler?.onVideoDetailChange(
|
||||
episode,
|
||||
cid,
|
||||
heroTag,
|
||||
|
||||
@@ -17,11 +17,11 @@ import 'package:PiliPlus/pages/video/introduction/ugc/widgets/page.dart';
|
||||
import 'package:PiliPlus/pages/video/introduction/ugc/widgets/season.dart';
|
||||
import 'package:PiliPlus/pages/video/introduction/ugc/widgets/triple_state.dart';
|
||||
import 'package:PiliPlus/utils/app_scheme.dart';
|
||||
import 'package:PiliPlus/utils/date_util.dart';
|
||||
import 'package:PiliPlus/utils/date_utils.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/feed_back.dart';
|
||||
import 'package:PiliPlus/utils/id_utils.dart';
|
||||
import 'package:PiliPlus/utils/num_util.dart';
|
||||
import 'package:PiliPlus/utils/num_utils.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:PiliPlus/utils/request_utils.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
@@ -517,7 +517,7 @@ class _UgcIntroPanelState extends TripleState<UgcIntroPanel>
|
||||
selectStatus: introController.hasLike.value,
|
||||
semanticsLabel: '点赞',
|
||||
text: !isLoading
|
||||
? NumUtil.numFormat(videoDetail.stat!.like)
|
||||
? NumUtils.numFormat(videoDetail.stat!.like)
|
||||
: null,
|
||||
onStartTriple: onStartTriple,
|
||||
onCancelTriple: onCancelTriple,
|
||||
@@ -544,7 +544,7 @@ class _UgcIntroPanelState extends TripleState<UgcIntroPanel>
|
||||
selectStatus: introController.hasCoin,
|
||||
semanticsLabel: '投币',
|
||||
text: !isLoading
|
||||
? NumUtil.numFormat(videoDetail.stat!.coin)
|
||||
? NumUtils.numFormat(videoDetail.stat!.coin)
|
||||
: null,
|
||||
),
|
||||
),
|
||||
@@ -561,7 +561,7 @@ class _UgcIntroPanelState extends TripleState<UgcIntroPanel>
|
||||
selectStatus: introController.hasFav.value,
|
||||
semanticsLabel: '收藏',
|
||||
text: !isLoading
|
||||
? NumUtil.numFormat(videoDetail.stat!.favorite)
|
||||
? NumUtils.numFormat(videoDetail.stat!.favorite)
|
||||
: null,
|
||||
),
|
||||
),
|
||||
@@ -582,7 +582,7 @@ class _UgcIntroPanelState extends TripleState<UgcIntroPanel>
|
||||
selectStatus: false,
|
||||
semanticsLabel: '分享',
|
||||
text: !isLoading
|
||||
? NumUtil.numFormat(videoDetail.stat!.share!)
|
||||
? NumUtils.numFormat(videoDetail.stat!.share!)
|
||||
: null,
|
||||
),
|
||||
],
|
||||
@@ -835,7 +835,7 @@ class _UgcIntroPanelState extends TripleState<UgcIntroPanel>
|
||||
),
|
||||
const SizedBox(height: 0),
|
||||
Text(
|
||||
'${NumUtil.numFormat(userStat.follower)}粉丝 ${'${NumUtil.numFormat(userStat.archiveCount)}视频'}',
|
||||
'${NumUtils.numFormat(userStat.follower)}粉丝 ${'${NumUtils.numFormat(userStat.archiveCount)}视频'}',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: theme.colorScheme.outline,
|
||||
@@ -863,7 +863,7 @@ class _UgcIntroPanelState extends TripleState<UgcIntroPanel>
|
||||
color: theme.colorScheme.outline,
|
||||
),
|
||||
Text(
|
||||
DateUtil.format(videoDetail.pubdate),
|
||||
DateFormatUtils.format(videoDetail.pubdate),
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: theme.colorScheme.outline,
|
||||
|
||||
Reference in New Issue
Block a user