Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-06 17:15:16 +08:00
parent ccde326e38
commit 77e418e4b7
3 changed files with 8 additions and 14 deletions

View File

@@ -147,16 +147,14 @@ class _UpowerRankPageState extends State<UpowerRankPage>
ThemeData theme, LoadingState<List<UpowerRankInfo>?> loadingState) {
late final width = MediaQuery.textScalerOf(context).scale(32);
return switch (loadingState) {
Loading() => widget.privilegeType == null
? const SliverToBoxAdapter(child: LinearProgressIndicator())
: const SliverToBoxAdapter(
child: SizedBox(
height: 125,
child: Center(
child: CircularProgressIndicator(),
),
),
Loading() => const SliverToBoxAdapter(
child: SizedBox(
height: 125,
child: Center(
child: CircularProgressIndicator(),
),
),
),
Success<List<UpowerRankInfo>?>(:var response) =>
response?.isNotEmpty == true
? SliverList.builder(