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

@@ -39,7 +39,7 @@ class AtMeController extends CommonListController<MsgAtData, MsgAtItem> {
@pragma('vm:notify-debugger-on-exception')
Future<void> onRemove(Object id, int index) async {
try {
var res = await MsgHttp.delMsgfeed(2, id);
final res = await MsgHttp.delMsgfeed(2, id);
if (res.isSuccess) {
loadingState
..value.data!.removeAt(index)

View File

@@ -84,7 +84,7 @@ class _AtMePageState extends State<AtMePage> {
itemCount: 12,
itemBuilder: (context, index) => const MsgFeedTopSkeleton(),
),
Success(:var response) =>
Success(:final response) =>
response != null && response.isNotEmpty
? SliverList.separated(
itemCount: response.length,
@@ -175,7 +175,7 @@ class _AtMePageState extends State<AtMePage> {
separatorBuilder: (context, index) => divider,
)
: HttpError(onReload: _atMeController.onReload),
Error(:var errMsg) => HttpError(
Error(:final errMsg) => HttpError(
errMsg: errMsg,
onReload: _atMeController.onReload,
),