mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt level indicator
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -196,6 +196,7 @@ class _MediaPageState extends CommonPageState<MinePage, MineController>
|
||||
return Obx(() {
|
||||
final UserInfoData userInfo = controller.userInfo.value;
|
||||
final LevelInfo? levelInfo = userInfo.levelInfo;
|
||||
final hasLevel = levelInfo != null;
|
||||
final isVip = userInfo.vipStatus != null && userInfo.vipStatus! > 0;
|
||||
final userStat = controller.userStat.value;
|
||||
return Column(
|
||||
@@ -306,9 +307,10 @@ class _MediaPageState extends CommonPageState<MinePage, MineController>
|
||||
constraints: const BoxConstraints(maxWidth: 225),
|
||||
child: LinearProgressIndicator(
|
||||
minHeight: 2.25,
|
||||
value: levelInfo != null
|
||||
? (levelInfo.currentExp! / levelInfo.nextExp!)
|
||||
value: hasLevel
|
||||
? levelInfo.currentExp! / levelInfo.nextExp!
|
||||
: 0,
|
||||
trackGap: hasLevel ? null : 0,
|
||||
backgroundColor: theme.colorScheme.outline.withValues(
|
||||
alpha: 0.4,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user