mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
@@ -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,
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user