fk overflow

This commit is contained in:
dan63047 2023-06-02 01:01:18 +03:00
parent 73b648aaa2
commit 30d875d155
1 changed files with 16 additions and 33 deletions

View File

@ -418,31 +418,15 @@ class _UserThingy extends StatelessWidget {
Row( Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
if (player.country != null) Expanded(
Text("${player.country?.toUpperCase()}", child: Text(
style: const TextStyle( "${player.country?.toUpperCase()}${player.role.capitalize()} account ${player.registrationTime == null ? "that was from very beginning" : 'created ${player.registrationTime}'} • ${player.supporterTier == 0 ? "Not a supporter" : "Supporter tier ${player.supporterTier}"}",
fontFamily: "Eurostile Round", textAlign: TextAlign.center,
fontSize: 16,
)),
Text(
"${player.role.capitalize()} account ${player.registrationTime == null ? "that was from very beginning" : 'created ${player.registrationTime}'}",
style: const TextStyle(
fontFamily: "Eurostile Round",
fontSize: 16,
)),
const Text("",
style: TextStyle(
fontFamily: "Eurostile Round",
fontSize: 16,
)),
Text(
player.supporterTier == 0
? "Not a supporter"
: "Supporter tier ${player.supporterTier}",
style: const TextStyle( style: const TextStyle(
fontFamily: "Eurostile Round", fontFamily: "Eurostile Round",
fontSize: 16, fontSize: 16,
)), )),
)
], ],
), ),
Wrap( Wrap(
@ -598,18 +582,17 @@ Widget _PlayerTabSection(BuildContext context, TetrioPlayer player) {
"res/tetrio_tl_alpha_ranks/${player.tlSeason1.rank}.png", "res/tetrio_tl_alpha_ranks/${player.tlSeason1.rank}.png",
height: bigScreen ? 128 : 64, height: bigScreen ? 128 : 64,
), ),
Column( Column(children: [
children: [
Text( Text(
"${player.tlSeason1.rating.toStringAsFixed(2)} TR", "${player.tlSeason1.rating.toStringAsFixed(2)} TR",
style: TextStyle( style: TextStyle(
fontFamily: fontFamily: "Eurostile Round Extended",
"Eurostile Round Extended",
fontSize: bigScreen ? 42 : 28)), fontSize: bigScreen ? 42 : 28)),
Text( Text(
"Top ${(player.tlSeason1.percentile * 100).toStringAsFixed(2)}% • Top Rank: ${player.tlSeason1.bestRank.toUpperCase()} • Glicko: ${player.tlSeason1.glicko?.toStringAsFixed(2)}±${player.tlSeason1.rd?.toStringAsFixed(2)}${player.tlSeason1.decaying ? ' • Decaying' : ''}") "Top ${(player.tlSeason1.percentile * 100).toStringAsFixed(2)}% • Top Rank: ${player.tlSeason1.bestRank.toUpperCase()} • Glicko: ${player.tlSeason1.glicko?.toStringAsFixed(2)}±${player.tlSeason1.rd?.toStringAsFixed(2)}${player.tlSeason1.decaying ? ' • Decaying' : ''}",
], textAlign: TextAlign.center,
) ),
])
], ],
) )
else else