Skip to content

Commit

Permalink
fiX squad ui when single in a row and subtitle text align
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sidhdhi-p committed Jul 9, 2024
1 parent 044319d commit ea68c60
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ class MatchDetailSquadView extends ConsumerWidget {
String? captainId,
}) {
if (user == null) {
return const SizedBox(
height: 0,
return const Expanded(
child: SizedBox(
height: 0,
),
);
}
bool isCaptain = user.id == captainId;
Expand Down Expand Up @@ -222,11 +224,13 @@ class MatchDetailSquadView extends ConsumerWidget {
textAlign: isSecondTeam ? TextAlign.end : null,
),
Text(
user.player_role != null
? user.player_role!.getString(context)
: context.l10n.common_not_specified_title,
style: AppTextStyle.caption
.copyWith(color: context.colorScheme.textDisabled)),
user.player_role != null
? user.player_role!.getString(context)
: context.l10n.common_not_specified_title,
style: AppTextStyle.caption
.copyWith(color: context.colorScheme.textDisabled),
textAlign: isSecondTeam ? TextAlign.end : null,
),
],
),
),
Expand Down

0 comments on commit ea68c60

Please sign in to comment.