Another Fixes
Dieser Commit ist enthalten in:
Ursprung
93744befff
Commit
cff370fa15
@ -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,
|
||||||
});
|
});
|
||||||
|
@ -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";
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
@ -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>
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren