TetraStats/lib/widgets/tl_thingy.dart

421 lines
28 KiB
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:tetra_stats/data_objects/tetrio.dart';
2023-06-27 20:55:59 +00:00
import 'package:syncfusion_flutter_gauges/gauges.dart';
import 'package:tetra_stats/gen/strings.g.dart';
import 'package:tetra_stats/widgets/graphs.dart';
import 'package:tetra_stats/widgets/stat_sell_num.dart';
var fDiff = NumberFormat("+#,###.###;-#,###.###");
2023-10-25 23:00:47 +00:00
final DateFormat dateFormat = DateFormat.yMMMd(LocaleSettings.currentLocale.languageCode).add_Hms();
final NumberFormat f2 = NumberFormat.decimalPatternDigits(locale: LocaleSettings.currentLocale.languageCode, decimalDigits: 2);
final NumberFormat f3 = NumberFormat.decimalPatternDigits(locale: LocaleSettings.currentLocale.languageCode, decimalDigits: 3);
late RangeValues _currentRangeValues;
2023-10-25 23:00:47 +00:00
TetraLeagueAlpha? oldTl;
late TetraLeagueAlpha currentTl;
late List<TetrioPlayer> sortedStates;
2023-10-25 23:00:47 +00:00
class TLThingy extends StatefulWidget {
final TetraLeagueAlpha tl;
final String userID;
2023-10-25 23:00:47 +00:00
final List<TetrioPlayer> states;
2023-08-20 21:57:01 +00:00
final bool showTitle;
final bool bot;
final bool guest;
final double? topTR;
const TLThingy({super.key, required this.tl, required this.userID, required this.states, this.showTitle = true, this.bot=false, this.guest=false, this.topTR});
@override
2023-10-25 23:00:47 +00:00
State<TLThingy> createState() => _TLThingyState();
}
class _TLThingyState extends State<TLThingy> {
@override
void initState() {
_currentRangeValues = const RangeValues(0, 1);
2023-10-25 23:00:47 +00:00
sortedStates = widget.states.reversed.toList();
try{
oldTl = sortedStates[1].tlSeason1;
}on RangeError{
oldTl = null;
}
2023-10-25 23:00:47 +00:00
currentTl = widget.tl;
super.initState();
}
@override
Widget build(BuildContext context) {
final t = Translations.of(context);
return LayoutBuilder(builder: (context, constraints) {
2023-10-25 23:00:47 +00:00
bool bigScreen = constraints.maxWidth > 768;
return ListView.builder(
physics: const ClampingScrollPhysics(),
itemCount: 1,
itemBuilder: (BuildContext context, int index) {
return Column(
2023-10-25 23:00:47 +00:00
children: (currentTl.gamesPlayed > 0)
? [
2023-10-25 23:00:47 +00:00
if (widget.showTitle) Text(t.tetraLeague, style: TextStyle(fontFamily: "Eurostile Round Extended", fontSize: bigScreen ? 42 : 28)),
if (oldTl != null) Text(t.comparingWith(newDate: dateFormat.format(currentTl.timestamp), oldDate: dateFormat.format(oldTl!.timestamp)),
textAlign: TextAlign.center,),
if (oldTl != null) RangeSlider(values: _currentRangeValues, max: widget.states.length.toDouble(),
2023-10-25 23:00:47 +00:00
labels: RangeLabels(
_currentRangeValues.start.round().toString(),
_currentRangeValues.end.round().toString(),
),
onChanged: (RangeValues values) {
setState(() {
_currentRangeValues = values;
if (values.start.round() == 0){
currentTl = widget.tl;
}else{
currentTl = sortedStates[values.start.round()-1].tlSeason1;
}
if (values.end.round() == 0){
oldTl = widget.tl;
}else{
oldTl = sortedStates[values.end.round()-1].tlSeason1;
}
});
},
),
if (currentTl.gamesPlayed >= 10)
Wrap(
direction: Axis.horizontal,
alignment: WrapAlignment.spaceAround,
crossAxisAlignment: WrapCrossAlignment.center,
clipBehavior: Clip.hardEdge,
children: [
2023-10-25 23:00:47 +00:00
widget.userID == "5e32fc85ab319c2ab1beb07c" // he love her so much, you can't even imagine
? Image.asset("res/icons/kagari.png", height: 128) // Btw why she wearing Kazamatsuri high school uniform?
2023-10-25 23:00:47 +00:00
: Image.asset("res/tetrio_tl_alpha_ranks/${currentTl.rank}.png", height: 128),
Column(
children: [
2023-10-25 23:00:47 +00:00
Text("${f2.format(currentTl.rating)} TR", style: TextStyle(fontFamily: "Eurostile Round Extended", fontSize: bigScreen ? 42 : 28)),
2023-06-28 16:50:40 +00:00
if (oldTl != null) Text(
2023-10-25 23:00:47 +00:00
"${fDiff.format(currentTl.rating - oldTl!.rating)} TR",
2023-06-28 16:50:40 +00:00
textAlign: TextAlign.center,
style: TextStyle(
2023-10-25 23:00:47 +00:00
color: currentTl.rating - oldTl!.rating < 0 ?
2023-06-28 16:50:40 +00:00
Colors.red :
Colors.green
),
),
2023-10-11 15:32:47 +00:00
Column(
2023-10-10 20:20:27 +00:00
children: [
2023-10-11 15:32:47 +00:00
RichText(
2023-10-10 20:20:27 +00:00
textAlign: TextAlign.center,
2023-10-11 15:32:47 +00:00
softWrap: true,
text: TextSpan(
style: DefaultTextStyle.of(context).style,
children: [
2023-10-25 23:00:47 +00:00
TextSpan(text: "${t.top} ${f2.format(currentTl.percentile * 100)}% (${currentTl.percentileRank.toUpperCase()})"),
if (currentTl.bestRank != "z") const TextSpan(text: ""),
if (currentTl.bestRank != "z") TextSpan(text: "${t.topRank}: ${currentTl.bestRank.toUpperCase()}"),
if (widget.topTR != null) TextSpan(text: " (${f2.format(widget.topTR)} TR)"),
TextSpan(text: " • Glicko: ${f2.format(currentTl.glicko!)}±"),
TextSpan(text: f2.format(currentTl.rd!), style: currentTl.decaying ? TextStyle(color: currentTl.rd! > 98 ? Colors.red : Colors.yellow) : null),
if (currentTl.decaying) WidgetSpan(child: Icon(Icons.trending_up, color: currentTl.rd! > 98 ? Colors.red : Colors.yellow,), alignment: PlaceholderAlignment.middle, baseline: TextBaseline.alphabetic)
2023-10-11 15:32:47 +00:00
],
),
2023-10-10 20:20:27 +00:00
),
],
),
],
),
],
2023-06-27 20:55:59 +00:00
),
2023-10-25 23:00:47 +00:00
if (currentTl.gamesPlayed >= 10 && currentTl.rd! < 100 && currentTl.nextAt >=0 && currentTl.prevAt >= 0) Padding(
2023-06-27 20:55:59 +00:00
padding: const EdgeInsets.all(8.0),
child: SfLinearGauge(
2023-10-25 23:00:47 +00:00
minimum: currentTl.nextAt.toDouble(),
maximum: currentTl.prevAt.toDouble(),
interval: currentTl.prevAt.toDouble() - currentTl.nextAt.toDouble(),
ranges: [LinearGaugeRange(startValue: currentTl.standing.toDouble() <= currentTl.prevAt.toDouble() ? currentTl.standing.toDouble() : currentTl.prevAt.toDouble(), endValue: currentTl.prevAt.toDouble(), color: Colors.cyanAccent,)],
markerPointers: [LinearShapePointer(value: currentTl.standing.toDouble() <= currentTl.prevAt.toDouble() ? currentTl.standing.toDouble() : currentTl.prevAt.toDouble(), position: LinearElementPosition.inside, shapeType: LinearShapePointerType.triangle, color: Colors.white, height: 20),
LinearWidgetPointer(offset: 4, position: LinearElementPosition.outside, value: currentTl.standing.toDouble() <= currentTl.prevAt.toDouble() ? currentTl.standing.toDouble() : currentTl.prevAt.toDouble(), child: Text(NumberFormat.decimalPatternDigits(locale: LocaleSettings.currentLocale.languageCode, decimalDigits: 0).format(currentTl.standing)))],
2023-06-27 20:55:59 +00:00
isAxisInversed: true,
isMirrored: true,
showTicks: true,
showLabels: true
),
),
2023-10-25 23:00:47 +00:00
if (currentTl.gamesPlayed < 10)
Text(t.gamesUntilRanked(left: 10 - currentTl.gamesPlayed),
softWrap: true,
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: "Eurostile Round Extended",
fontSize: bigScreen ? 42 : 28,
overflow: TextOverflow.visible,
)),
Padding(
padding: const EdgeInsets.fromLTRB(0, 16, 0, 48),
child: Wrap(
direction: Axis.horizontal,
alignment: WrapAlignment.center,
spacing: 25,
crossAxisAlignment: WrapCrossAlignment.start,
clipBehavior: Clip.hardEdge,
children: [
2023-10-25 23:00:47 +00:00
if (currentTl.apm != null) StatCellNum(playerStat: currentTl.apm!, isScreenBig: bigScreen, fractionDigits: 2, playerStatLabel: t.statCellNum.apm, higherIsBetter: true, oldPlayerStat: oldTl?.apm),
if (currentTl.pps != null) StatCellNum(playerStat: currentTl.pps!, isScreenBig: bigScreen, fractionDigits: 2, playerStatLabel: t.statCellNum.pps, higherIsBetter: true, oldPlayerStat: oldTl?.pps),
if (currentTl.vs != null) StatCellNum(playerStat: currentTl.vs!, isScreenBig: bigScreen, fractionDigits: 2, playerStatLabel: t.statCellNum.vs, higherIsBetter: true, oldPlayerStat: oldTl?.vs),
if (currentTl.standingLocal > 0) StatCellNum(playerStat: currentTl.standingLocal, isScreenBig: bigScreen, playerStatLabel: t.statCellNum.lbpc, higherIsBetter: false, oldPlayerStat: oldTl?.standingLocal),
StatCellNum(playerStat: currentTl.gamesPlayed, isScreenBig: bigScreen, playerStatLabel: t.statCellNum.gamesPlayed, higherIsBetter: true, oldPlayerStat: oldTl?.gamesPlayed),
StatCellNum(playerStat: currentTl.gamesWon, isScreenBig: bigScreen, playerStatLabel: t.statCellNum.gamesWonTL, higherIsBetter: true, oldPlayerStat: oldTl?.gamesWon),
StatCellNum(playerStat: currentTl.winrate * 100, isScreenBig: bigScreen, fractionDigits: 2, playerStatLabel: t.statCellNum.winrate, higherIsBetter: true, oldPlayerStat: oldTl != null ? oldTl!.winrate*100 : null),
],
),
),
2023-10-25 23:00:47 +00:00
if (currentTl.nerdStats != null)
Column(
children: [
Text(t.nerdStats, style: TextStyle(fontFamily: "Eurostile Round Extended", fontSize: bigScreen ? 42 : 28)),
Padding(
2023-06-27 20:55:59 +00:00
padding: const EdgeInsets.fromLTRB(0, 40, 0, 0),
child: Wrap(
direction: Axis.horizontal,
alignment: WrapAlignment.center,
2023-06-27 20:55:59 +00:00
spacing: 35,
crossAxisAlignment: WrapCrossAlignment.start,
clipBehavior: Clip.hardEdge,
children: [
2023-06-27 20:55:59 +00:00
SizedBox(
width: 200,
height: 120,
child: SfRadialGauge(
2023-07-12 15:14:25 +00:00
title: GaugeTitle(text: t.statCellNum.app),
2023-06-27 20:55:59 +00:00
axes: [RadialAxis(
startAngle: 180,
endAngle: 360,
showLabels: false,
showTicks: false,
radiusFactor: 2.1,
centerY: 0.5,
2023-06-27 20:55:59 +00:00
minimum: 0,
maximum: 1,
ranges: [
GaugeRange(startValue: 0, endValue: 0.2, color: Colors.red),
GaugeRange(startValue: 0.2, endValue: 0.4, color: Colors.yellow),
GaugeRange(startValue: 0.4, endValue: 0.6, color: Colors.green),
GaugeRange(startValue: 0.6, endValue: 0.8, color: Colors.blue),
GaugeRange(startValue: 0.8, endValue: 1, color: Colors.purple),
],
pointers: [
NeedlePointer(
2023-10-25 23:00:47 +00:00
value: currentTl.nerdStats!.app,
2023-06-27 20:55:59 +00:00
enableAnimation: true,
needleLength: 0.9,
needleStartWidth: 2,
needleEndWidth: 15,
knobStyle: const KnobStyle(color: Colors.transparent),
gradient: const LinearGradient(colors: [Colors.transparent, Colors.white], begin: Alignment.bottomCenter, end: Alignment.topCenter, stops: [0.5, 1]),)
],
2023-06-28 16:50:40 +00:00
annotations: [GaugeAnnotation(
2023-10-25 23:00:47 +00:00
widget: TextButton(child: Text(f3.format(currentTl.nerdStats!.app),
2023-06-28 16:50:40 +00:00
style: const TextStyle(fontFamily: "Eurostile Round Extended", fontSize: 36, color: Colors.white)),
onPressed: (){
showDialog(
context: context,
builder: (BuildContext context) => AlertDialog(
2023-07-12 15:14:25 +00:00
title: Text(t.statCellNum.app,
style: const TextStyle(
2023-06-28 16:50:40 +00:00
fontFamily: "Eurostile Round Extended")),
content: SingleChildScrollView(
child: ListBody(children: [
2023-07-12 15:14:25 +00:00
Text(t.statCellNum.appDescription),
2023-10-25 23:00:47 +00:00
Text("${t.exactValue}: ${currentTl.nerdStats!.app}")
2023-06-28 16:50:40 +00:00
]),
),
actions: <Widget>[
TextButton(
2023-07-12 15:14:25 +00:00
child: Text(t.popupActions.ok),
2023-06-28 16:50:40 +00:00
onPressed: () {
Navigator.of(context).pop();
},
)
],
));
},), verticalAlignment: GaugeAlignment.far, positionFactor: 0.05,),
2023-10-25 23:00:47 +00:00
if (oldTl != null && oldTl!.gamesPlayed > 0) GaugeAnnotation(widget: Text(fDiff.format(currentTl.nerdStats!.app - oldTl!.nerdStats!.app), style: TextStyle(
color: currentTl.nerdStats!.app - oldTl!.nerdStats!.app < 0 ?
2023-06-28 16:50:40 +00:00
Colors.red :
Colors.green
),), positionFactor: 0.05,)],
2023-06-27 20:55:59 +00:00
)],),
),
SizedBox(
width: 200,
height: 120,
child: SfRadialGauge(
title: const GaugeTitle(text: "VS / APM"),
axes: [RadialAxis(
startAngle: 180,
endAngle: 360,
showTicks: false,
showLabels: false,
radiusFactor: 2.1,
centerY: 0.5,
2023-06-27 20:55:59 +00:00
minimum: 1.8,
maximum: 2.4,
ranges: [
GaugeRange(startValue: 1.8, endValue: 2.0, color: Colors.green),
GaugeRange(startValue: 2.0, endValue: 2.2, color: Colors.blue),
GaugeRange(startValue: 2.2, endValue: 2.4, color: Colors.purple),
],
pointers: [
NeedlePointer(
2023-10-25 23:00:47 +00:00
value: currentTl.nerdStats!.vsapm,
2023-06-27 20:55:59 +00:00
enableAnimation: true,
needleLength: 0.9,
needleStartWidth: 2,
needleEndWidth: 15,
knobStyle: const KnobStyle(color: Colors.transparent),
gradient: const LinearGradient(colors: [Colors.transparent, Colors.white], begin: Alignment.bottomCenter, end: Alignment.topCenter, stops: [0.5, 1]),)
],
2023-06-28 16:50:40 +00:00
annotations: [GaugeAnnotation(
2023-10-25 23:00:47 +00:00
widget: TextButton(child: Text(f3.format(currentTl.nerdStats!.vsapm),
2023-06-28 16:50:40 +00:00
style: const TextStyle(fontFamily: "Eurostile Round Extended", fontSize: 36, color: Colors.white)),
onPressed: (){
showDialog(
context: context,
builder: (BuildContext context) => AlertDialog(
title: const Text("VS / APM",
style: TextStyle(
fontFamily: "Eurostile Round Extended")),
content: SingleChildScrollView(
2023-06-28 16:50:40 +00:00
child: ListBody(children: [
2023-07-12 15:14:25 +00:00
Text(t.statCellNum.vsapmDescription),
2023-10-25 23:00:47 +00:00
Text("${t.exactValue}: ${currentTl.nerdStats!.vsapm}")
2023-06-28 16:50:40 +00:00
]),
),
actions: <Widget>[
TextButton(
2023-07-12 15:14:25 +00:00
child: Text(t.popupActions.ok),
2023-06-28 16:50:40 +00:00
onPressed: () {
Navigator.of(context).pop();
},
)
],
));
},), verticalAlignment: GaugeAlignment.far, positionFactor: 0.05),
2023-10-25 23:00:47 +00:00
if (oldTl != null && oldTl!.gamesPlayed > 0) GaugeAnnotation(widget: Text(fDiff.format(currentTl.nerdStats!.vsapm - oldTl!.nerdStats!.vsapm), style: TextStyle(
color: currentTl.nerdStats!.vsapm - oldTl!.nerdStats!.vsapm < 0 ?
2023-06-28 16:50:40 +00:00
Colors.red :
Colors.green
),), positionFactor: 0.05,)],
2023-06-27 20:55:59 +00:00
)],),
),]),
),
Wrap(
direction: Axis.horizontal,
alignment: WrapAlignment.center,
spacing: 25,
crossAxisAlignment: WrapCrossAlignment.start,
clipBehavior: Clip.hardEdge,
children: [
2023-10-25 23:00:47 +00:00
StatCellNum(playerStat: currentTl.nerdStats!.dss, isScreenBig: bigScreen, fractionDigits: 3, playerStatLabel: t.statCellNum.dss,
2023-07-12 15:14:25 +00:00
alertWidgets: [Text(t.statCellNum.dssDescription),
Text("${t.formula}: (VS / 100) - (APM / 60)"),
2023-10-25 23:00:47 +00:00
Text("${t.exactValue}: ${currentTl.nerdStats!.dss}"),],
2023-07-12 15:14:25 +00:00
okText: t.popupActions.ok,
2023-06-28 16:50:40 +00:00
higherIsBetter: true,
oldPlayerStat: oldTl?.nerdStats?.dss,),
2023-10-25 23:00:47 +00:00
StatCellNum(playerStat: currentTl.nerdStats!.dsp, isScreenBig: bigScreen, fractionDigits: 3, playerStatLabel: t.statCellNum.dsp,
2023-07-12 15:14:25 +00:00
alertWidgets: [Text(t.statCellNum.dspDescription),
Text("${t.formula}: DS/S / PPS"),
2023-10-25 23:00:47 +00:00
Text("${t.exactValue}: ${currentTl.nerdStats!.dsp}"),],
2023-07-12 15:14:25 +00:00
okText: t.popupActions.ok,
2023-06-28 16:50:40 +00:00
higherIsBetter: true,
oldPlayerStat: oldTl?.nerdStats?.dsp,),
2023-10-25 23:00:47 +00:00
StatCellNum(playerStat: currentTl.nerdStats!.appdsp, isScreenBig: bigScreen, fractionDigits: 3, playerStatLabel: t.statCellNum.appdsp,
2023-07-12 15:14:25 +00:00
alertWidgets: [Text(t.statCellNum.appdspDescription),
Text("${t.formula}: APP + DS/P"),
2023-10-25 23:00:47 +00:00
Text("${t.exactValue}: ${currentTl.nerdStats!.appdsp}"),],
2023-07-12 15:14:25 +00:00
okText: t.popupActions.ok,
2023-06-28 16:50:40 +00:00
higherIsBetter: true,
oldPlayerStat: oldTl?.nerdStats?.appdsp,),
2023-10-25 23:00:47 +00:00
StatCellNum(playerStat: currentTl.nerdStats!.cheese, isScreenBig: bigScreen, fractionDigits: 2, playerStatLabel: t.statCellNum.cheese,
2023-07-12 15:14:25 +00:00
alertWidgets: [Text(t.statCellNum.cheeseDescription),
Text("${t.formula}: (DS/P * 150) + ((VS/APM - 2) * 50) + (0.6 - APP) * 125"),
2023-10-25 23:00:47 +00:00
Text("${t.exactValue}: ${currentTl.nerdStats!.cheese}"),],
2023-07-12 15:14:25 +00:00
okText: t.popupActions.ok,
2023-06-28 16:50:40 +00:00
higherIsBetter: true,
oldPlayerStat: oldTl?.nerdStats?.cheese,),
2023-10-25 23:00:47 +00:00
StatCellNum(playerStat: currentTl.nerdStats!.gbe, isScreenBig: bigScreen, fractionDigits: 3, playerStatLabel: t.statCellNum.gbe,
2023-07-12 15:14:25 +00:00
alertWidgets: [Text(t.statCellNum.gbeDescription),
2024-01-22 18:00:24 +00:00
Text("${t.formula}: APP * DS/P * 2"),
2023-10-25 23:00:47 +00:00
Text("${t.exactValue}: ${currentTl.nerdStats!.gbe}"),],
2023-07-12 15:14:25 +00:00
okText: t.popupActions.ok,
2023-06-28 16:50:40 +00:00
higherIsBetter: true,
oldPlayerStat: oldTl?.nerdStats?.gbe,),
2023-10-25 23:00:47 +00:00
StatCellNum(playerStat: currentTl.nerdStats!.nyaapp, isScreenBig: bigScreen, fractionDigits: 3, playerStatLabel: t.statCellNum.nyaapp,
2023-07-12 15:14:25 +00:00
alertWidgets: [Text(t.statCellNum.nyaappDescription),
Text("${t.formula}: APP - 5 * tan(radians((Cheese Index / -30) + 1))"),
2023-10-25 23:00:47 +00:00
Text("${t.exactValue}: ${currentTl.nerdStats!.nyaapp}"),],
2023-07-12 15:14:25 +00:00
okText: t.popupActions.ok,
2023-06-28 16:50:40 +00:00
higherIsBetter: true,
oldPlayerStat: oldTl?.nerdStats?.nyaapp,),
2023-10-25 23:00:47 +00:00
StatCellNum(playerStat: currentTl.nerdStats!.area, isScreenBig: bigScreen, fractionDigits: 1, playerStatLabel: t.statCellNum.area,
2023-07-12 15:14:25 +00:00
alertWidgets: [Text(t.statCellNum.areaDescription),
Text("${t.formula}: APM * 1 + PPS * 45 + VS * 0.444 + APP * 185 + DS/S * 175 + DS/P * 450 + Garbage Effi * 315"),
2023-10-25 23:00:47 +00:00
Text("${t.exactValue}: ${currentTl.nerdStats!.area}"),],
2023-07-12 15:14:25 +00:00
okText: t.popupActions.ok,
2023-06-28 16:50:40 +00:00
higherIsBetter: true,
oldPlayerStat: oldTl?.nerdStats?.area,)
2023-06-27 20:55:59 +00:00
])
],
),
2023-10-25 23:00:47 +00:00
if (currentTl.estTr != null)
Padding(
padding: const EdgeInsets.fromLTRB(0, 16, 0, 48),
child: SizedBox(
width: bigScreen ? MediaQuery.of(context).size.width * 0.4 : MediaQuery.of(context).size.width * 0.85,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
2023-07-12 15:14:25 +00:00
Text(
2023-07-15 16:22:25 +00:00
"${bigScreen ? t.statCellNum.estOfTR : t.statCellNum.estOfTRShort}:",
2023-07-12 15:14:25 +00:00
style: const TextStyle(fontSize: 24),
),
Text(
2023-10-25 23:00:47 +00:00
f2.format(currentTl.estTr!.esttr),
style: const TextStyle(fontSize: 24),
),
],
),
2023-10-25 23:00:47 +00:00
if (currentTl.rating >= 0)
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
2023-07-12 15:14:25 +00:00
Text(
2023-07-15 16:22:25 +00:00
"${bigScreen ? t.statCellNum.accOfEst : t.statCellNum.accOfEstShort}:",
2023-07-12 15:14:25 +00:00
style: const TextStyle(fontSize: 24),
),
Text(
2023-10-25 23:00:47 +00:00
fDiff.format(currentTl.esttracc!),
style: const TextStyle(fontSize: 24),
),
],
),
],
),
),
),
if (currentTl.nerdStats != null) Graphs(currentTl.apm!, currentTl.pps!, currentTl.vs!, currentTl.nerdStats!, currentTl.playstyle!)
]
: [
Center(child: Text(widget.guest ? t.anonTL : widget.bot ? t.botTL : t.neverPlayedTL, style: const TextStyle(fontFamily: "Eurostile Round", fontSize: 28), textAlign: TextAlign.center,)),
],
);
},
);
});
}
}