Fix of tl_thingy text line under TR
This commit is contained in:
parent
6e1473c6fb
commit
35e7379e2f
|
@ -1077,6 +1077,7 @@ class _OtherThingy extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
Text(t.distinguishment, style: TextStyle(fontFamily: "Eurostile Round Extended", fontSize: bigScreen ? 42 : 28), textAlign: TextAlign.center),
|
Text(t.distinguishment, style: TextStyle(fontFamily: "Eurostile Round Extended", fontSize: bigScreen ? 42 : 28), textAlign: TextAlign.center),
|
||||||
RichText(
|
RichText(
|
||||||
|
textAlign: TextAlign.center,
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
style: DefaultTextStyle.of(context).style,
|
style: DefaultTextStyle.of(context).style,
|
||||||
children: getDistinguishmentSetOfWidgets(distinguishment!.header!),
|
children: getDistinguishmentSetOfWidgets(distinguishment!.header!),
|
||||||
|
|
|
@ -55,14 +55,24 @@ class TLThingy extends StatelessWidget {
|
||||||
Colors.green
|
Colors.green
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
|
||||||
children: [
|
children: [
|
||||||
Text(
|
RichText(
|
||||||
"${t.top} ${f2.format(tl.percentile * 100)}% (${tl.percentileRank.toUpperCase()})${tl.bestRank != "z" ? " • ${t.topRank}: ${tl.bestRank.toUpperCase()}" : ""}${topTR != null ? " (${f2.format(topTR)} TR)" : ""} • Glicko: ${f2.format(tl.glicko!)}±${f2.format(tl.rd!)}",
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
softWrap: true,
|
||||||
|
text: TextSpan(
|
||||||
|
style: DefaultTextStyle.of(context).style,
|
||||||
|
children: [
|
||||||
|
TextSpan(text: "${t.top} ${f2.format(tl.percentile * 100)}% (${tl.percentileRank.toUpperCase()})"),
|
||||||
|
if (tl.bestRank != "z") const TextSpan(text: " • "),
|
||||||
|
if (tl.bestRank != "z") TextSpan(text: "${t.topRank}: ${tl.bestRank.toUpperCase()}"),
|
||||||
|
if (topTR != null) TextSpan(text: " (${f2.format(topTR)} TR)"),
|
||||||
|
TextSpan(text: " • Glicko: ${f2.format(tl.glicko!)}±"),
|
||||||
|
TextSpan(text: f2.format(tl.rd!), style: tl.decaying ? TextStyle(color: tl.rd! > 98 ? Colors.red : Colors.yellow) : null),
|
||||||
|
if (tl.decaying) WidgetSpan(child: Icon(Icons.trending_up, color: tl.rd! > 98 ? Colors.red : Colors.yellow,), alignment: PlaceholderAlignment.middle, baseline: TextBaseline.alphabetic)
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
if (tl.decaying) Icon(Icons.trending_up, color: tl.rd! > 98 ? Colors.red : Colors.yellow,)
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue