opt: func

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-07 13:07:15 +08:00
parent 6353ecc13e
commit 286193f08f
99 changed files with 204 additions and 270 deletions

View File

@@ -38,7 +38,7 @@ class BlackListController
return false;
}
Future onRemove(BuildContext context, int index, name, mid) async {
void onRemove(BuildContext context, int index, name, mid) {
showConfirmDialog(
context: context,
title: '确定将 $name 移出黑名单?',

View File

@@ -40,7 +40,7 @@ class _BlackListPageState extends State<BlackListPage> {
),
),
body: refreshIndicator(
onRefresh: () async => await _blackListController.onRefresh(),
onRefresh: _blackListController.onRefresh,
child: CustomScrollView(
physics: const AlwaysScrollableScrollPhysics(),
controller: _blackListController.scrollController,