quick fixes

holy shit i'm so dumb
This commit is contained in:
dan63047 2023-07-06 16:26:20 +03:00
parent 26c51823e7
commit eae9bbedee
1 changed files with 3 additions and 6 deletions

View File

@ -13,12 +13,8 @@ enum Mode{
} }
Mode greenSideMode = Mode.player; Mode greenSideMode = Mode.player;
List<dynamic> theGreenSide = [null, null, null]; // TetrioPlayer?, List<DropdownMenuItem<TetrioPlayer>>?, TetraLeagueAlpha? List<dynamic> theGreenSide = [null, null, null]; // TetrioPlayer?, List<DropdownMenuItem<TetrioPlayer>>?, TetraLeagueAlpha?
//TetrioPlayer? theGreenSide;
//List<DropdownMenuItem<TetrioPlayer>>? greenSideStates;
Mode redSideMode = Mode.player; Mode redSideMode = Mode.player;
List<dynamic> theRedSide = [null, null, null]; List<dynamic> theRedSide = [null, null, null];
//TetrioPlayer? theRedSide;
//List<DropdownMenuItem<TetrioPlayer>>? redSideStates;
final TetrioService teto = TetrioService(); final TetrioService teto = TetrioService();
final DateFormat dateFormat = DateFormat.yMd().add_Hm(); final DateFormat dateFormat = DateFormat.yMd().add_Hm();
// ignore: unnecessary_string_escapes // ignore: unnecessary_string_escapes
@ -51,7 +47,9 @@ class CompareState extends State<CompareView> {
@override @override
void dispose(){ void dispose(){
theGreenSide = [null, null, null]; theGreenSide = [null, null, null];
greenSideMode = Mode.player;
theRedSide = [null, null, null]; theRedSide = [null, null, null];
redSideMode = Mode.player;
super.dispose(); super.dispose();
} }
@ -87,7 +85,6 @@ class CompareState extends State<CompareView> {
return setState(() {}); return setState(() {});
} }
var player = await teto.fetchPlayer(user); var player = await teto.fetchPlayer(user);
//theRedSide
redSideMode = Mode.player; redSideMode = Mode.player;
late List<TetrioPlayer> states; late List<TetrioPlayer> states;
List<DropdownMenuItem<TetrioPlayer>>? dStates = <DropdownMenuItem<TetrioPlayer>>[]; List<DropdownMenuItem<TetrioPlayer>>? dStates = <DropdownMenuItem<TetrioPlayer>>[];
@ -128,7 +125,7 @@ class CompareState extends State<CompareView> {
double apm = double.parse(threeNumbers[0][0]!); double apm = double.parse(threeNumbers[0][0]!);
double pps = double.parse(threeNumbers[1][0]!); double pps = double.parse(threeNumbers[1][0]!);
double vs = double.parse(threeNumbers[2][0]!); double vs = double.parse(threeNumbers[2][0]!);
theGreenSide = theRedSide = [null, theGreenSide = [null,
null, null,
TetraLeagueAlpha( TetraLeagueAlpha(
apm: apm, apm: apm,