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

@@ -29,9 +29,7 @@ class _AtMePageState extends State<AtMePage> {
title: const Text('@我的'),
),
body: refreshIndicator(
onRefresh: () async {
await _atMeController.onRefresh();
},
onRefresh: _atMeController.onRefresh,
child: CustomScrollView(
physics: const AlwaysScrollableScrollPhysics(),
slivers: [

View File

@@ -29,9 +29,7 @@ class _LikeMePageState extends State<LikeMePage> {
title: const Text('收到的赞'),
),
body: refreshIndicator(
onRefresh: () async {
await _likeMeController.onRefresh();
},
onRefresh: _likeMeController.onRefresh,
child: CustomScrollView(
physics: const AlwaysScrollableScrollPhysics(),
slivers: [

View File

@@ -27,9 +27,7 @@ class _ReplyMePageState extends State<ReplyMePage> {
return Scaffold(
appBar: AppBar(title: const Text('回复我的')),
body: refreshIndicator(
onRefresh: () async {
await _replyMeController.onRefresh();
},
onRefresh: _replyMeController.onRefresh,
child: CustomScrollView(
physics: const AlwaysScrollableScrollPhysics(),
slivers: [

View File

@@ -27,7 +27,7 @@ class SysMsgController
}
}
Future msgSysUpdateCursor(int? cursor) async {
void msgSysUpdateCursor(int? cursor) {
if (cursor != null) {
MsgHttp.msgSysUpdateCursor(cursor);
}

View File

@@ -34,9 +34,7 @@ class _SysMsgPageState extends State<SysMsgPage> {
title: const Text('系统通知'),
),
body: refreshIndicator(
onRefresh: () async {
await _sysMsgController.onRefresh();
},
onRefresh: _sysMsgController.onRefresh,
child: CustomScrollView(
physics: const AlwaysScrollableScrollPhysics(),
slivers: [