From ed23f4113cddd96919f174f584a1aacf0c1d16ff Mon Sep 17 00:00:00 2001 From: Ayad Laaouissi Jones <42848220+AyadLaouissi@users.noreply.github.com> Date: Wed, 22 May 2024 12:03:14 +0200 Subject: [PATCH] fix: leaderboard You text color and initial aligned (#512) * fix: leaderboard you text color and initial aligned * updated leaderboard_success.dart --- lib/leaderboard/view/leaderboard_success.dart | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/leaderboard/view/leaderboard_success.dart b/lib/leaderboard/view/leaderboard_success.dart index 6793b8f70..4676c9b17 100644 --- a/lib/leaderboard/view/leaderboard_success.dart +++ b/lib/leaderboard/view/leaderboard_success.dart @@ -142,7 +142,9 @@ class CurrentUserPosition extends StatelessWidget { children: [ Text( '${l10n.you}:', - style: theme.io.textStyles.body4, + style: theme.io.textStyles.body4.medium?.copyWith( + color: IoCrosswordColors.softGray, + ), ), UserLeaderboardRanking( player: player, @@ -186,9 +188,12 @@ class UserLeaderboardRanking extends StatelessWidget { child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - Text( - rank.toDisplayNumber(), - style: themeData.io.textStyles.body4, + SizedBox( + width: 45, + child: Text( + rank.toDisplayNumber(), + style: themeData.io.textStyles.body4, + ), ), IoWord( player.initials,