Fixed random bug (i think) + i thinking
This commit is contained in:
parent
533d38042e
commit
95d4243cc2
|
@ -16,6 +16,7 @@ import 'package:tetra_stats/views/tracked_players_view.dart';
|
|||
import 'package:tetra_stats/views/calc_view.dart';
|
||||
|
||||
late final PackageInfo packageInfo;
|
||||
Color accentColor = Colors.cyanAccent;
|
||||
|
||||
void main() async {
|
||||
if (kIsWeb) {
|
||||
|
|
|
@ -1,15 +1,9 @@
|
|||
import 'dart:io';
|
||||
import 'package:tetra_stats/main.dart' show packageInfo;
|
||||
import 'package:file_selector/file_selector.dart';
|
||||
import 'package:file_picker/file_picker.dart';
|
||||
import 'package:tetra_stats/main.dart' show accentColor;
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:tetra_stats/gen/strings.g.dart';
|
||||
import 'package:tetra_stats/services/crud_exceptions.dart';
|
||||
import 'package:tetra_stats/services/tetrio_crud.dart';
|
||||
import 'package:tetra_stats/utils/open_in_browser.dart';
|
||||
import 'package:window_manager/window_manager.dart';
|
||||
|
||||
late String oldWindowTitle;
|
||||
|
@ -60,7 +54,11 @@ class CustomizationState extends State<CustomizationView> {
|
|||
body: SafeArea(
|
||||
child: ListView(
|
||||
children: [
|
||||
ListTile(title: Text("Accent Color"),),
|
||||
ListTile(title: Text("Accent Color"),
|
||||
onTap: () {
|
||||
accentColor = Colors.cyanAccent;
|
||||
setState(() {});
|
||||
},),
|
||||
ListTile(title: Text("Font"),),
|
||||
ListTile(title: Text("Stats Table in TL mathes list"),),
|
||||
],
|
||||
|
|
|
@ -192,7 +192,7 @@ class TLThingy extends StatelessWidget {
|
|||
],
|
||||
));
|
||||
},), verticalAlignment: GaugeAlignment.far, positionFactor: 0.05,),
|
||||
if (oldTl != null) GaugeAnnotation(widget: Text(fDiff.format(tl.nerdStats!.app - oldTl!.nerdStats!.app), style: TextStyle(
|
||||
if (oldTl != null && oldTl!.gamesPlayed > 0) GaugeAnnotation(widget: Text(fDiff.format(tl.nerdStats!.app - oldTl!.nerdStats!.app), style: TextStyle(
|
||||
color: tl.nerdStats!.app - oldTl!.nerdStats!.app < 0 ?
|
||||
Colors.red :
|
||||
Colors.green
|
||||
|
@ -254,7 +254,7 @@ class TLThingy extends StatelessWidget {
|
|||
],
|
||||
));
|
||||
},), verticalAlignment: GaugeAlignment.far, positionFactor: 0.05),
|
||||
if (oldTl != null) GaugeAnnotation(widget: Text(fDiff.format(tl.nerdStats!.vsapm - oldTl!.nerdStats!.vsapm), style: TextStyle(
|
||||
if (oldTl != null && oldTl!.gamesPlayed > 0) GaugeAnnotation(widget: Text(fDiff.format(tl.nerdStats!.vsapm - oldTl!.nerdStats!.vsapm), style: TextStyle(
|
||||
color: tl.nerdStats!.vsapm - oldTl!.nerdStats!.vsapm < 0 ?
|
||||
Colors.red :
|
||||
Colors.green
|
||||
|
|
Loading…
Reference in New Issue