Skip to content

Commit

Permalink
Mr changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-mayank committed May 31, 2024
1 parent 8fa3d4e commit afb1224
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions khelo/assets/locales/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"team_detail_empty_match_title": "Team hasn't compete with opponent till now.",
"team_detail_stat_tab_title": "Stat",
"team_detail_empty_stat_title": "Team's analysis will be shown here based on it's previous matches.",
"team_detail_won_title": " Won({win})",
"team_detail_won_title": "Won({win})",
"@team_detail_won_title": {
"description": "Won({win})",
"placeholders": {
Expand All @@ -209,7 +209,7 @@
}
}
},
"team_detail_lost_title": " Lost({lost})",
"team_detail_lost_title": "Lost({lost})",
"@team_detail_lost_title": {
"description": "Lost({lost})",
"placeholders": {
Expand All @@ -218,7 +218,7 @@
}
}
},
"team_detail_tie_title": " Tie({tie})",
"team_detail_tie_title": "Tie({tie})",
"@team_detail_tie_title": {
"description": "Tie({tie})",
"placeholders": {
Expand All @@ -241,7 +241,6 @@
"team_detail_lowest_runs_title": "Lowest Runs",
"team_detail_run_rate_title": "Run Rate",
"team_detail_overs_title": "Overs:",
"team_detail_member_not_specified_role": "Not Specified",
"match_status_yet_to_start_title": "Yet to start",
"match_status_running_title": "Running",
"match_status_finish_title": "Finish",
Expand Down
6 changes: 3 additions & 3 deletions khelo/lib/components/user_detail_cell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ class UserDetailCell extends StatelessWidget {
final UserModel user;
final Function()? onTap;
final Widget? trailing;
final bool isShowNumber;
final bool showPhoneNumber;

const UserDetailCell({
super.key,
required this.user,
this.onTap,
this.trailing,
this.isShowNumber = true,
this.showPhoneNumber = true,
});

@override
Expand Down Expand Up @@ -50,7 +50,7 @@ class UserDetailCell extends StatelessWidget {
: context.l10n.common_not_specified_title,
style: AppTextStyle.caption
.copyWith(color: context.colorScheme.textDisabled)),
if (user.phone != null && isShowNumber) ...[
if (user.phone != null && showPhoneNumber) ...[
const SizedBox(height: 2),
Text(
user.phone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TeamDetailMemberContent extends ConsumerWidget {
itemCount: state.team!.players!.length,
itemBuilder: (context, index) {
final member = state.team!.players![index];
return UserDetailCell(user: member, isShowNumber: false);
return UserDetailCell(user: member, showPhoneNumber: false);
},
separatorBuilder: (context, index) => const SizedBox(height: 16),
);
Expand Down

0 comments on commit afb1224

Please sign in to comment.