refa: ugc intro

Closes #879

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-22 17:15:40 +08:00
parent a4a866d3f5
commit a875ff3988
15 changed files with 563 additions and 639 deletions

View File

@@ -334,7 +334,7 @@ class PgcIntroController extends CommonIntroController {
..danmakuCid.value = cid
..queryVideoUrl();
if (cover is String && cover.isNotEmpty) {
videoDetailCtr.videoItem['pic'] = cover;
videoDetailCtr.cover.value = cover;
}
// 重新请求评论

View File

@@ -271,7 +271,6 @@ class _PgcIntroPageState extends State<PgcIntroPage>
onTap: () => handleState(pgcIntroController.actionLikeVideo),
onLongPress: pgcIntroController.actionOneThree,
selectStatus: pgcIntroController.hasLike.value,
isLoading: false,
semanticsLabel: '点赞',
text: NumUtil.numFormat(item.stat!.likes),
needAnim: true,
@@ -297,7 +296,6 @@ class _PgcIntroPageState extends State<PgcIntroPage>
selectIcon: const Icon(FontAwesomeIcons.b),
onTap: () => handleState(pgcIntroController.actionCoinVideo),
selectStatus: pgcIntroController.hasCoin,
isLoading: false,
semanticsLabel: '投币',
text: NumUtil.numFormat(item.stat!.coins),
needAnim: true,
@@ -312,7 +310,6 @@ class _PgcIntroPageState extends State<PgcIntroPage>
onLongPress: () => pgcIntroController.showFavBottomSheet(context,
type: 'longPress'),
selectStatus: pgcIntroController.hasFav.value,
isLoading: false,
semanticsLabel: '收藏',
text: NumUtil.numFormat(item.stat!.favorite),
needAnim: true,
@@ -323,7 +320,6 @@ class _PgcIntroPageState extends State<PgcIntroPage>
selectIcon: const Icon(FontAwesomeIcons.reply),
onTap: () => videoDetailCtr.tabCtr.animateTo(1),
selectStatus: false,
isLoading: false,
semanticsLabel: '评论',
text: NumUtil.numFormat(item.stat!.reply),
),
@@ -331,7 +327,6 @@ class _PgcIntroPageState extends State<PgcIntroPage>
icon: const Icon(FontAwesomeIcons.shareFromSquare),
onTap: () => pgcIntroController.actionShareVideo(context),
selectStatus: false,
isLoading: false,
semanticsLabel: '转发',
text: NumUtil.numFormat(item.stat!.share),
),