1
0
Dieser Commit ist enthalten in:
Chaoscaot 2022-12-26 21:48:33 +01:00
Ursprung 93744befff
Commit cff370fa15
4 geänderte Dateien mit 18 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -46,7 +46,7 @@ class EventRepository {
"start": start.millisecondsSinceEpoch, "start": start.millisecondsSinceEpoch,
"end": end.millisecondsSinceEpoch, "end": end.millisecondsSinceEpoch,
"maxTeamMembers": maxTeamMembers, "maxTeamMembers": maxTeamMembers,
"schemType": schemType, "schemType": schemType ?? "null",
"publicSchemsOnly": publicOnly, "publicSchemsOnly": publicOnly,
"spectateSystem": useSpectateSystem, "spectateSystem": useSpectateSystem,
}); });

Datei anzeigen

@ -5,7 +5,7 @@ import 'package:steamwar_multitool/src/provider/user.dart';
final serverUrlProvider = Provider<String>((ref) { final serverUrlProvider = Provider<String>((ref) {
if (kDebugMode) { if (kDebugMode) {
return "http://localhost:8000"; return "http://localhost:1337";
} else { } else {
return "https://steamwar.de/eventplanner-api"; return "https://steamwar.de/eventplanner-api";
} }

Datei anzeigen

@ -365,10 +365,21 @@ class _EventFightList extends HookConsumerWidget {
const SizedBox(height: 8), const SizedBox(height: 8),
for (final fight in fights.value) for (final fight in fights.value)
ListTile( ListTile(
title: Text("${fight.blueTeam.name} vs ${fight.redTeam.name}"), title: Text(
subtitle: fight.score != 0 "${fight.blueTeam.name} vs ${fight.redTeam.name}",
? Text("Winner: ${fight.winner.name}") style: TextStyle(
: Text(fight.start.toString()), color: fight.winner.color.computeLuminance() > 0.5
? Colors.black
: Colors.white),
),
subtitle: Text(
fight.score != 0
? fight.start.toString()
: "Winner: ${fight.winner.name}",
style: TextStyle(
color: fight.winner.color.computeLuminance() > 0.5
? Colors.black
: Colors.white)),
onTap: () { onTap: () {
showDialog( showDialog(
context: context, context: context,

Datei anzeigen

@ -37,7 +37,7 @@
var serviceWorkerVersion = null; var serviceWorkerVersion = null;
</script> </script>
<!-- This script adds the flutter initialization JS code --> <!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script> <script src="main.dart.js" defer></script>
</head> </head>
<body> <body>
<script> <script>