Compare commits
2 Commits
22fcff73bd
...
678ab90af3
| Author | SHA1 | Date | |
|---|---|---|---|
| 678ab90af3 | |||
| a038c22ba6 |
@@ -32,7 +32,6 @@ class GameTracker extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
return supportedLocales.firstWhere(
|
return supportedLocales.firstWhere(
|
||||||
(locale) => locale.languageCode == 'en',
|
(locale) => locale.languageCode == 'en',
|
||||||
orElse: () => supportedLocales.first,
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ class _CreateGroupViewState extends State<CreateGroupView> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(
|
AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.error_while_creating_group_please_try_again,
|
).error_while_creating_group_please_try_again,
|
||||||
style: const TextStyle(color: Colors.white),
|
style: const TextStyle(color: Colors.white),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ class _HomeViewState extends State<HomeView> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(
|
AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.no_recent_matches_available,
|
).no_recent_matches_available,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -128,12 +128,12 @@ class _HomeViewState extends State<HomeView> {
|
|||||||
game: AppLocalizations.of(context).winner_label,
|
game: AppLocalizations.of(context).winner_label,
|
||||||
ruleset: AppLocalizations.of(
|
ruleset: AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.ruleset_label,
|
).ruleset_label,
|
||||||
players: _getPlayerText(recentMatches[0]),
|
players: _getPlayerText(recentMatches[0]),
|
||||||
winner: recentMatches[0].winner == null
|
winner: recentMatches[0].winner == null
|
||||||
? AppLocalizations.of(
|
? AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.match_in_progress
|
).match_in_progress
|
||||||
: recentMatches[0].winner!.name,
|
: recentMatches[0].winner!.name,
|
||||||
),
|
),
|
||||||
const Padding(
|
const Padding(
|
||||||
@@ -143,17 +143,15 @@ class _HomeViewState extends State<HomeView> {
|
|||||||
if (loadedRecentMatches.length > 1) ...[
|
if (loadedRecentMatches.length > 1) ...[
|
||||||
MatchSummaryTile(
|
MatchSummaryTile(
|
||||||
matchTitle: recentMatches[1].name,
|
matchTitle: recentMatches[1].name,
|
||||||
game: AppLocalizations.of(
|
game: AppLocalizations.of(context).winner_label,
|
||||||
context,
|
|
||||||
)!.winner_label,
|
|
||||||
ruleset: AppLocalizations.of(
|
ruleset: AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.ruleset_label,
|
).ruleset_label,
|
||||||
players: _getPlayerText(recentMatches[1]),
|
players: _getPlayerText(recentMatches[1]),
|
||||||
winner: recentMatches[1].winner == null
|
winner: recentMatches[1].winner == null
|
||||||
? AppLocalizations.of(
|
? AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.match_in_progress
|
).match_in_progress
|
||||||
: recentMatches[1].winner!.name,
|
: recentMatches[1].winner!.name,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
@@ -163,7 +161,7 @@ class _HomeViewState extends State<HomeView> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(
|
AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.no_second_match_available,
|
).no_second_match_available,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ class _ChooseGroupViewState extends State<ChooseGroupView> {
|
|||||||
title: AppLocalizations.of(context).info,
|
title: AppLocalizations.of(context).info,
|
||||||
message: AppLocalizations.of(
|
message: AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.there_is_no_group_matching_your_search,
|
).there_is_no_group_matching_your_search,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ class _SettingsViewState extends State<SettingsView> {
|
|||||||
context: context,
|
context: context,
|
||||||
message: AppLocalizations.of(
|
message: AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.data_successfully_deleted,
|
).data_successfully_deleted,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -87,9 +87,7 @@ class _StatisticsViewState extends State<StatisticsView> {
|
|||||||
SizedBox(height: constraints.maxHeight * 0.02),
|
SizedBox(height: constraints.maxHeight * 0.02),
|
||||||
StatisticsTile(
|
StatisticsTile(
|
||||||
icon: Icons.casino,
|
icon: Icons.casino,
|
||||||
title: AppLocalizations.of(
|
title: AppLocalizations.of(context).amount_of_matches,
|
||||||
context,
|
|
||||||
)!.amount_of_matches,
|
|
||||||
width: constraints.maxWidth * 0.95,
|
width: constraints.maxWidth * 0.95,
|
||||||
values: matchCounts,
|
values: matchCounts,
|
||||||
itemCount: 10,
|
itemCount: 10,
|
||||||
@@ -102,7 +100,7 @@ class _StatisticsViewState extends State<StatisticsView> {
|
|||||||
title: AppLocalizations.of(context).info,
|
title: AppLocalizations.of(context).info,
|
||||||
message: AppLocalizations.of(
|
message: AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.no_statistics_available,
|
).no_statistics_available,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: MediaQuery.paddingOf(context).bottom),
|
SizedBox(height: MediaQuery.paddingOf(context).bottom),
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ class _PlayerSelectionState extends State<PlayerSelection> {
|
|||||||
Text(
|
Text(
|
||||||
AppLocalizations.of(
|
AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.selected_players(selectedPlayers.length),
|
).selected_players(selectedPlayers.length),
|
||||||
style: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
|
style: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
@@ -206,7 +206,7 @@ class _PlayerSelectionState extends State<PlayerSelection> {
|
|||||||
? AppLocalizations.of(context).all_players_selected
|
? AppLocalizations.of(context).all_players_selected
|
||||||
: AppLocalizations.of(
|
: AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.no_players_found_with_that_name,
|
).no_players_found_with_that_name,
|
||||||
),
|
),
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
itemCount: suggestedPlayers.length,
|
itemCount: suggestedPlayers.length,
|
||||||
@@ -264,7 +264,7 @@ class _PlayerSelectionState extends State<PlayerSelection> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(
|
AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.successfully_added_player(playerName),
|
).successfully_added_player(playerName),
|
||||||
style: const TextStyle(color: Colors.white),
|
style: const TextStyle(color: Colors.white),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -144,11 +144,11 @@ class _MatchTileState extends State<MatchTile> {
|
|||||||
if (difference.inDays == 0) {
|
if (difference.inDays == 0) {
|
||||||
return AppLocalizations.of(
|
return AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.today_at(DateFormat('HH:mm').format(dateTime));
|
).today_at(DateFormat('HH:mm').format(dateTime));
|
||||||
} else if (difference.inDays == 1) {
|
} else if (difference.inDays == 1) {
|
||||||
return AppLocalizations.of(
|
return AppLocalizations.of(
|
||||||
context,
|
context,
|
||||||
)!.yesterday_at(DateFormat('HH:mm').format(dateTime));
|
).yesterday_at(DateFormat('HH:mm').format(dateTime));
|
||||||
} else if (difference.inDays < 7) {
|
} else if (difference.inDays < 7) {
|
||||||
return AppLocalizations.of(context).days_ago(difference.inDays);
|
return AppLocalizations.of(context).days_ago(difference.inDays);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user