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

@@ -173,7 +173,7 @@ class _UpowerRankPageState extends State<UpowerRankPage>
late final width = MediaQuery.textScalerOf(context).scale(32);
return switch (loadingState) {
Loading() => linearLoading,
Success<List<UpowerRankInfo>?>(:var response) =>
Success<List<UpowerRankInfo>?>(:final response) =>
response != null && response.isNotEmpty
? SliverList.builder(
itemCount: response.length,
@@ -242,7 +242,7 @@ class _UpowerRankPageState extends State<UpowerRankPage>
},
)
: HttpError(onReload: _controller.onReload),
Error(:var errMsg) => HttpError(
Error(:final errMsg) => HttpError(
errMsg: errMsg,
onReload: _controller.onReload,
),