From 298dd3a6767b621f51940c05602cd5ddbc02a0ba Mon Sep 17 00:00:00 2001 From: cp-mayank-v Date: Thu, 6 Jun 2024 14:45:38 +0530 Subject: [PATCH] Minor changes --- .../flow/team/detail/components/primer_progress_bar.dart | 8 ++++++-- .../team/detail/components/team_detail_stat_content.dart | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/khelo/lib/ui/flow/team/detail/components/primer_progress_bar.dart b/khelo/lib/ui/flow/team/detail/components/primer_progress_bar.dart index a8f7a7b7..022457a8 100644 --- a/khelo/lib/ui/flow/team/detail/components/primer_progress_bar.dart +++ b/khelo/lib/ui/flow/team/detail/components/primer_progress_bar.dart @@ -22,16 +22,20 @@ class PrimerProgressBar extends StatelessWidget { _progressBarSegment( color: context.colorScheme.positive, count: status.win, - isStartRadius: true, + isStartRadius: status.win != 0, + isEndRadius: status.tie == 0 && status.lost == 0, ), _progressBarSegment( color: context.colorScheme.secondary, count: status.tie, + isStartRadius: status.win == 0, + isEndRadius: status.lost == 0, ), _progressBarSegment( color: context.colorScheme.alert, count: status.lost, - isEndRadius: true, + isEndRadius: status.lost != 0, + isStartRadius: status.win == 0 && status.tie == 0, ), ], ), diff --git a/khelo/lib/ui/flow/team/detail/components/team_detail_stat_content.dart b/khelo/lib/ui/flow/team/detail/components/team_detail_stat_content.dart index 9a12c3e4..521e27e5 100644 --- a/khelo/lib/ui/flow/team/detail/components/team_detail_stat_content.dart +++ b/khelo/lib/ui/flow/team/detail/components/team_detail_stat_content.dart @@ -66,7 +66,7 @@ class TeamDetailStatContent extends ConsumerWidget { mainAxisAlignment: MainAxisAlignment.center, children: [ Text( - '$playedMatches ${context.l10n.team_detail_match_title(playedMatches)}', + context.l10n.team_detail_match_title(playedMatches), style: AppTextStyle.header2 .copyWith(color: context.colorScheme.textPrimary), ),