Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-27 20:54:41 +08:00
parent 25acf3a9bb
commit b51c646415
227 changed files with 768 additions and 764 deletions

View File

@@ -60,7 +60,7 @@ class PgcReviewController
);
Future<void> onLike(PgcReviewItemModel item, bool isLike, reviewId) async {
var res = await PgcHttp.pgcReviewLike(
final res = await PgcHttp.pgcReviewLike(
mediaId: mediaId,
reviewId: reviewId,
);
@@ -83,7 +83,7 @@ class PgcReviewController
bool isDislike,
reviewId,
) async {
var res = await PgcHttp.pgcReviewDislike(
final res = await PgcHttp.pgcReviewDislike(
mediaId: mediaId,
reviewId: reviewId,
);
@@ -102,7 +102,7 @@ class PgcReviewController
}
Future<void> onDel(int index, int reviewId) async {
var res = await PgcHttp.pgcReviewDel(
final res = await PgcHttp.pgcReviewDel(
mediaId: mediaId,
reviewId: reviewId,
);

View File

@@ -88,7 +88,7 @@ class _PgcReviewChildPageState extends State<PgcReviewChildPage>
itemBuilder: (_, _) => const VideoReplySkeleton(),
itemCount: 8,
),
Success(:var response) =>
Success(:final response) =>
response != null && response.isNotEmpty
? SliverList.separated(
itemBuilder: (context, index) {
@@ -101,7 +101,7 @@ class _PgcReviewChildPageState extends State<PgcReviewChildPage>
separatorBuilder: (context, index) => divider,
)
: HttpError(onReload: _controller.onReload),
Error(:var errMsg) => HttpError(
Error(:final errMsg) => HttpError(
errMsg: errMsg,
onReload: _controller.onReload,
),