mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 19:14:42 +08:00
mod: update error widget
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -157,10 +157,10 @@ class _AtMePageState extends State<AtMePage> {
|
||||
);
|
||||
},
|
||||
)
|
||||
: HttpError(callback: _atMeController.onReload),
|
||||
: HttpError(onReload: _atMeController.onReload),
|
||||
Error() => HttpError(
|
||||
errMsg: loadingState.errMsg,
|
||||
callback: _atMeController.onReload,
|
||||
onReload: _atMeController.onReload,
|
||||
),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
|
||||
@@ -117,11 +117,11 @@ class _LikeMePageState extends State<LikeMePage> {
|
||||
],
|
||||
);
|
||||
}
|
||||
return HttpError(callback: _likeMeController.onReload);
|
||||
return HttpError(onReload: _likeMeController.onReload);
|
||||
}(),
|
||||
Error() => HttpError(
|
||||
errMsg: loadingState.errMsg,
|
||||
callback: _likeMeController.onReload,
|
||||
onReload: _likeMeController.onReload,
|
||||
),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
|
||||
@@ -178,10 +178,10 @@ class _ReplyMePageState extends State<ReplyMePage> {
|
||||
);
|
||||
},
|
||||
)
|
||||
: HttpError(callback: _replyMeController.onReload),
|
||||
: HttpError(onReload: _replyMeController.onReload),
|
||||
Error() => HttpError(
|
||||
errMsg: loadingState.errMsg,
|
||||
callback: _replyMeController.onReload,
|
||||
onReload: _replyMeController.onReload,
|
||||
),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
|
||||
@@ -136,10 +136,10 @@ class _SysMsgPageState extends State<SysMsgPage> {
|
||||
);
|
||||
},
|
||||
)
|
||||
: HttpError(callback: _sysMsgController.onReload),
|
||||
: HttpError(onReload: _sysMsgController.onReload),
|
||||
Error() => HttpError(
|
||||
errMsg: loadingState.errMsg,
|
||||
callback: _sysMsgController.onReload,
|
||||
onReload: _sysMsgController.onReload,
|
||||
),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user