some minor things
|
@ -600,7 +600,7 @@ class _NavDrawerState extends State<NavDrawer> {
|
|||
homePlayerNickname = id;
|
||||
}
|
||||
} else {
|
||||
homePlayerNickname = "dan63";
|
||||
homePlayerNickname = "dan63047";
|
||||
}
|
||||
setState(() {});
|
||||
}
|
||||
|
|
|
@ -48,11 +48,7 @@ class SettingsState extends State<SettingsView> {
|
|||
|
||||
Future<void> _getPreferences() async {
|
||||
prefs = await SharedPreferences.getInstance();
|
||||
if (prefs.getBool("showPositions") != null) {
|
||||
showPositions = prefs.getBool("showPositions")!;
|
||||
} else {
|
||||
showPositions = false;
|
||||
}
|
||||
showPositions = prefs.getBool("showPositions") ?? false;
|
||||
_setDefaultNickname(prefs.getString("player"));
|
||||
}
|
||||
|
||||
|
@ -64,7 +60,7 @@ class SettingsState extends State<SettingsView> {
|
|||
defaultNickname = n;
|
||||
}
|
||||
} else {
|
||||
defaultNickname = "6098518e3d5155e6ec429cdc";
|
||||
defaultNickname = "dan63047";
|
||||
}
|
||||
setState(() {});
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ class TLProgress extends StatelessWidget{
|
|||
if (tlData.nextAt > 0 && nextRankTRcutoff != null) const TextSpan(text: "\n"),
|
||||
if (nextRankTRcutoff != null) TextSpan(text: "${f2.format(nextRankTRcutoff)} (${comparef2.format(nextRankTRcutoff!-tlData.rating)}) TR"),
|
||||
if ((tlData.nextAt > 0 || nextRankTRcutoff != null) && nextRankGlickoCutoff != null) const TextSpan(text: "\n"),
|
||||
if (nextRankGlickoCutoff != null) TextSpan(text: (tlData.standing < tlData.nextAt || (nextRankGlickoCutoff!-tlData.glicko!)/glickoForWin < 0.5) ? t.promotionOnNextWin : t.numOfVictories(wins: f2.format((nextRankGlickoCutoff!-tlData.glicko!)/glickoForWin)), style: TextStyle(color: (tlData.standing < tlData.nextAt || (nextRankGlickoCutoff!-tlData.glicko!)/glickoForWin < 0.5) ? Colors.greenAccent : null))
|
||||
if (nextRankGlickoCutoff != null) TextSpan(text: (tlData.standing < tlData.nextAt || ((nextRankGlickoCutoff!-tlData.glicko!)/glickoForWin < 0.5 && tlData.percentileRank != "x")) ? t.promotionOnNextWin : t.numOfVictories(wins: f2.format((nextRankGlickoCutoff!-tlData.glicko!)/glickoForWin)), style: TextStyle(color: (tlData.standing < tlData.nextAt || ((nextRankGlickoCutoff!-tlData.glicko!)/glickoForWin < 0.5 && tlData.percentileRank != "x")) ? Colors.greenAccent : null))
|
||||
]
|
||||
)
|
||||
),
|
||||
|
|
|
@ -411,7 +411,7 @@ class UserThingy extends StatelessWidget {
|
|||
errorBuilder: (context, error, stackTrace) {
|
||||
developer.log("Error with building $badge", name: "main_view", error: error, stackTrace: stackTrace);
|
||||
return Image.network(
|
||||
"https://tetr.io/res/badges/${badge.badgeId}.png",
|
||||
kIsWeb ? "https://ts.dan63.by/oskware_bridge.php?endpoint=TetrioBadge&badge=${badge.badgeId}" : "https://tetr.io/res/badges/${badge.badgeId}.png",
|
||||
height: 32,
|
||||
width: 32,
|
||||
errorBuilder:(context, error, stackTrace) {
|
||||
|
|
After Width: | Height: | Size: 149 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 8.2 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 3.8 KiB |