From 055980005a2eb7edee2d3d833781b362e8040863 Mon Sep 17 00:00:00 2001 From: Kelrap Date: Wed, 2 Jul 2025 11:38:30 -0400 Subject: [PATCH] When level summary is loading, show loading instead of 0 xp --- .../level_up/level_up_popup.dart | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/lib/pangea/analytics_misc/level_up/level_up_popup.dart b/lib/pangea/analytics_misc/level_up/level_up_popup.dart index c7aa2fb3b..b061f4e2c 100644 --- a/lib/pangea/analytics_misc/level_up/level_up_popup.dart +++ b/lib/pangea/analytics_misc/level_up/level_up_popup.dart @@ -500,15 +500,24 @@ class _LevelUpPopupContentState extends State 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, + ), + ), ], ), );