and another one

This commit is contained in:
dan63047 2024-12-07 17:31:37 +03:00
parent 7450b73200
commit b5a1f0a19a
5 changed files with 19 additions and 23 deletions

View File

@ -482,11 +482,15 @@ class _DestinationCalculatorState extends State<DestinationCalculator> {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Card( Card(
child: TabBar(tabs: [ child: TabBar(
Tab(text: t.calcDestination.actions), labelStyle: Theme.of(context).textTheme.titleMedium!.copyWith(fontSize: 28),
if (widget.constraints.maxWidth <= 768.0) Tab(text: t.calcDestination.results), labelColor: Theme.of(context).colorScheme.primary,
Tab(text: t.calcDestination.rules), tabs: [
]), Tab(text: t.calcDestination.actions),
if (widget.constraints.maxWidth <= 768.0) Tab(text: t.calcDestination.results),
Tab(text: t.calcDestination.rules),
]
),
), ),
SizedBox( SizedBox(
height: widget.constraints.maxHeight - 164, height: widget.constraints.maxHeight - 164,

View File

@ -742,7 +742,7 @@ class _DestinationHomeState extends State<DestinationHome> with SingleTickerProv
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Text(t.homeNavigation.overview, style: TextStyle(fontFamily: "Eurostile Round Extended", fontSize: 42)), Text(t.homeNavigation.overview, style: TextStyle(fontFamily: "Eurostile Round Extended", fontSize: 42), textAlign: TextAlign.center),
], ],
), ),
), ),
@ -755,7 +755,7 @@ class _DestinationHomeState extends State<DestinationHome> with SingleTickerProv
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Text(t.gamemodes['40l']!, style: Theme.of(context).textTheme.titleSmall), Text(t.gamemodes['40l']!, style: Theme.of(context).textTheme.titleSmall, textAlign: TextAlign.center),
const Divider(), const Divider(),
RecordSummary(record: summaries.sprint, betterThanClosestAverage: sprintBetterThanClosestAverage, betterThanRankAverage: sprintBetterThanRankAverage, closestAverage: closestAverageSprint, rank: summaries.league.percentileRank), RecordSummary(record: summaries.sprint, betterThanClosestAverage: sprintBetterThanClosestAverage, betterThanRankAverage: sprintBetterThanRankAverage, closestAverage: closestAverageSprint, rank: summaries.league.percentileRank),
const Divider(), const Divider(),
@ -770,7 +770,7 @@ class _DestinationHomeState extends State<DestinationHome> with SingleTickerProv
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Text(t.gamemodes['blitz']!, style: Theme.of(context).textTheme.titleSmall), Text(t.gamemodes['blitz']!, style: Theme.of(context).textTheme.titleSmall, textAlign: TextAlign.center),
const Divider(), const Divider(),
RecordSummary(record: summaries.blitz, betterThanClosestAverage: blitzBetterThanClosestAverage, betterThanRankAverage: blitzBetterThanRankAverage, closestAverage: closestAverageBlitz, rank: summaries.league.percentileRank), RecordSummary(record: summaries.blitz, betterThanClosestAverage: blitzBetterThanClosestAverage, betterThanRankAverage: blitzBetterThanRankAverage, closestAverage: closestAverageBlitz, rank: summaries.league.percentileRank),
const Divider(), const Divider(),
@ -785,7 +785,7 @@ class _DestinationHomeState extends State<DestinationHome> with SingleTickerProv
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Text(t.gamemodes['zenith']!, style: Theme.of(context).textTheme.titleSmall), Text(t.gamemodes['zenith']!, style: Theme.of(context).textTheme.titleSmall, textAlign: TextAlign.center),
const Divider(), const Divider(),
RecordSummary(record: summaries.zenith != null ? summaries.zenith : summaries.zenithCareerBest, hideRank: true, old: summaries.zenith == null), RecordSummary(record: summaries.zenith != null ? summaries.zenith : summaries.zenithCareerBest, hideRank: true, old: summaries.zenith == null),
const Divider(), const Divider(),
@ -800,7 +800,7 @@ class _DestinationHomeState extends State<DestinationHome> with SingleTickerProv
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Text(t.gamemodes['zenithex']!, style: Theme.of(context).textTheme.titleSmall), Text(t.gamemodes['zenithex']!, style: Theme.of(context).textTheme.titleSmall, textAlign: TextAlign.center),
const Divider(), const Divider(),
RecordSummary(record: summaries.zenithEx != null ? summaries.zenithEx : summaries.zenithExCareerBest, hideRank: true, old: summaries.zenith == null), RecordSummary(record: summaries.zenithEx != null ? summaries.zenithEx : summaries.zenithExCareerBest, hideRank: true, old: summaries.zenith == null),
const Divider(), const Divider(),
@ -815,7 +815,7 @@ class _DestinationHomeState extends State<DestinationHome> with SingleTickerProv
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Center(child: Text(t.gamemodes['zen']!, style: Theme.of(context).textTheme.titleSmall)), Center(child: Text(t.gamemodes['zen']!, style: Theme.of(context).textTheme.titleSmall, textAlign: TextAlign.center)),
Text("${t.stats.level.full} ${intf.format(summaries.zen.level)}", style: const TextStyle(fontFamily: "Eurostile Round", fontSize: 36, fontWeight: FontWeight.w500, color: Colors.white)), Text("${t.stats.level.full} ${intf.format(summaries.zen.level)}", style: const TextStyle(fontFamily: "Eurostile Round", fontSize: 36, fontWeight: FontWeight.w500, color: Colors.white)),
Text("${t.stats.score} ${intf.format(summaries.zen.score)}"), Text("${t.stats.score} ${intf.format(summaries.zen.score)}"),
Text(t.stats.levelUpRequirement(p: intf.format(summaries.zen.scoreRequirement)), style: const TextStyle(color: Colors.grey)) Text(t.stats.levelUpRequirement(p: intf.format(summaries.zen.scoreRequirement)), style: const TextStyle(color: Colors.grey))

View File

@ -354,7 +354,7 @@ class _DestinationLeaderboardsState extends State<DestinationLeaderboards> {
child: ListTile( child: ListTile(
title: Text(leaderboards.values.elementAt(index)), title: Text(leaderboards.values.elementAt(index)),
trailing: Icon(Icons.arrow_right, color: _currentLb.index == index ? Colors.white : Colors.grey), trailing: Icon(Icons.arrow_right, color: _currentLb.index == index ? Colors.white : Colors.grey),
subtitle: index == 1 ? Text(t.leaderboardsDestination.fullTLnote, style: TextStyle(color: Colors.grey, fontSize: 12)) : null, subtitle: index == 1 ? Text(t.TLfullLBnote, style: TextStyle(color: Colors.grey, fontSize: 12)) : null,
onTap: () { onTap: () {
if (widget.constraints.maxWidth <= transformThreshold) Navigator.push( if (widget.constraints.maxWidth <= transformThreshold) Navigator.push(
context, context,

View File

@ -141,14 +141,7 @@ class _DestinationSavedData extends State<DestinationSavedData> {
child: Column( child: Column(
children: [ children: [
Card( Card(
child: Row( child: Center(child: Text(t.savedDataDestination.title, style: Theme.of(context).textTheme.headlineMedium, textAlign: TextAlign.center)),
mainAxisSize: MainAxisSize.min,
children: [
Spacer(),
Text(t.savedDataDestination.title, style: Theme.of(context).textTheme.headlineMedium),
Spacer()
],
),
), ),
for (String id in snapshot.data!.keys) Card( for (String id in snapshot.data!.keys) Card(
child: ListTile( child: ListTile(

View File

@ -37,7 +37,7 @@
"nanow": "Not avaliable for now...", "nanow": "Not avaliable for now...",
"seasonEnds": "Season ends in ${countdown}", "seasonEnds": "Season ends in ${countdown}",
"seasonEnded": "Season has ended", "seasonEnded": "Season has ended",
"overallPB": "Overall PB: $pb", "overallPB": "Overall PB: $pb m",
"gamesUntilRanked": "${left} games until being ranked", "gamesUntilRanked": "${left} games until being ranked",
"numOfVictories": "~${wins} victories", "numOfVictories": "~${wins} victories",
"promotionOnNextWin": "Promotion on next win", "promotionOnNextWin": "Promotion on next win",
@ -273,8 +273,7 @@
"title": "Leaderboards", "title": "Leaderboards",
"tl": "Tetra League (Current Season)", "tl": "Tetra League (Current Season)",
"fullTL": "Tetra League (Current Season, full one)", "fullTL": "Tetra League (Current Season, full one)",
"ar": "Acievement Points", "ar": "Acievement Points"
"fullTLnote": "Heavy, but allows you to sort players by their stats and filter them by ranks"
}, },
"savedDataDestination": { "savedDataDestination": {
"title": "Saved Data", "title": "Saved Data",