mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-29 12:38:34 +00:00
@@ -37,7 +37,7 @@ class BlackListController
|
||||
context: context,
|
||||
title: '确定将 $name 移出黑名单?',
|
||||
onConfirm: () async {
|
||||
var result = await VideoHttp.relationMod(mid: mid, act: 6, reSrc: 11);
|
||||
final result = await VideoHttp.relationMod(mid: mid, act: 6, reSrc: 11);
|
||||
if (result.isSuccess) {
|
||||
loadingState
|
||||
..value.data!.removeAt(index)
|
||||
|
||||
@@ -74,7 +74,7 @@ class _BlackListPageState extends State<BlackListPage> {
|
||||
itemCount: 12,
|
||||
itemBuilder: (context, index) => const MsgFeedTopSkeleton(),
|
||||
),
|
||||
Success(:var response) =>
|
||||
Success(:final response) =>
|
||||
response != null && response.isNotEmpty
|
||||
? SliverList.builder(
|
||||
itemCount: response.length,
|
||||
@@ -118,7 +118,7 @@ class _BlackListPageState extends State<BlackListPage> {
|
||||
},
|
||||
)
|
||||
: HttpError(onReload: _blackListController.onReload),
|
||||
Error(:var errMsg) => HttpError(
|
||||
Error(:final errMsg) => HttpError(
|
||||
errMsg: errMsg,
|
||||
onReload: _blackListController.onReload,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user