Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-27 20:54:41 +08:00
parent 25acf3a9bb
commit b51c646415
227 changed files with 768 additions and 764 deletions

View File

@@ -65,7 +65,7 @@ class LikeMeController
Future<void> onRemove(dynamic id, int index, bool isLatest) async {
try {
var res = await MsgHttp.delMsgfeed(0, id);
final res = await MsgHttp.delMsgfeed(0, id);
if (res.isSuccess) {
Pair<List<MsgLikeItem>, List<MsgLikeItem>> pair =
loadingState.value.data;
@@ -84,7 +84,7 @@ class LikeMeController
Future<void> onSetNotice(MsgLikeItem item, bool isNotice) async {
int noticeState = isNotice ? 1 : 0;
var res = await MsgHttp.msgSetNotice(
final res = await MsgHttp.msgSetNotice(
id: item.id!,
noticeState: noticeState,
);

View File

@@ -82,7 +82,7 @@ class _LikeMePageState extends State<LikeMePage> {
itemCount: 12,
itemBuilder: (context, index) => const MsgFeedTopSkeleton(),
),
Success(:var response) => Builder(
Success(:final response) => Builder(
builder: (context) {
Pair<List<MsgLikeItem>, List<MsgLikeItem>> pair = response;
List<MsgLikeItem> latest = pair.first;
@@ -134,7 +134,7 @@ class _LikeMePageState extends State<LikeMePage> {
return HttpError(onReload: _likeMeController.onReload);
},
),
Error(:var errMsg) => HttpError(
Error(:final errMsg) => HttpError(
errMsg: errMsg,
onReload: _likeMeController.onReload,
),