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

@@ -36,7 +36,7 @@ class SysMsgController
Future<void> onRemove(dynamic id, int index) async {
try {
var res = await MsgHttp.delSysMsg(id);
final res = await MsgHttp.delSysMsg(id);
if (res.isSuccess) {
loadingState
..value.data!.removeAt(index)

View File

@@ -70,7 +70,7 @@ class _SysMsgPageState extends State<SysMsgPage> {
itemBuilder: (context, index) => const MsgFeedSysMsgSkeleton(),
),
),
Success(:var response) =>
Success(:final response) =>
response != null && response.isNotEmpty
? SliverList.separated(
itemCount: response.length,
@@ -125,7 +125,7 @@ class _SysMsgPageState extends State<SysMsgPage> {
separatorBuilder: (context, index) => divider,
)
: HttpError(onReload: _sysMsgController.onReload),
Error(:var errMsg) => HttpError(
Error(:final errMsg) => HttpError(
errMsg: errMsg,
onReload: _sysMsgController.onReload,
),