When level summary is loading, show loading instead of 0 xp

This commit is contained in:
Kelrap 2025-07-02 11:38:30 -04:00
parent b01b397833
commit 055980005a

View file

@ -500,15 +500,24 @@ class _LevelUpPopupContentState extends State<LevelUpPopupContent>
color: Theme.of(context).colorScheme.onSurface,
),
const SizedBox(height: 4),
Text(
'+ ${_getSkillXP(skill)} XP',
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: AppConfig.gold,
),
textAlign: TextAlign.center,
),
(_constructSummary != null)
? Text(
'+ ${_getSkillXP(skill)} XP',
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: AppConfig.gold,
),
textAlign: TextAlign.center,
)
: const SizedBox(
height: 6.0,
width: 6.0,
child: CircularProgressIndicator(
strokeWidth: 2.0,
color: AppConfig.gold,
),
),
],
),
);