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

@@ -28,7 +28,7 @@ class SubController
}
// 取消订阅
Future<void> cancelSub(SubFolderItemData subFolderItem) async {
void cancelSub(SubFolderItemData subFolderItem) {
showDialog(
context: Get.context!,
builder: (context) => AlertDialog(

View File

@@ -27,9 +27,7 @@ class _SubPageState extends State<SubPage> {
top: false,
bottom: false,
child: refreshIndicator(
onRefresh: () async {
await _subController.onRefresh();
},
onRefresh: _subController.onRefresh,
child: CustomScrollView(
slivers: [
Obx(() => _buildBody(_subController.loadingState.value)),