Erweiterungen Ranking

This commit is contained in:
Sven committed 2024-02-27 14:27:10 +01:00
1 parent fca152aa1e
commit b18a0c4526
4 files changed
+5 -6

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ class _AcceptedJobsPageState extends State<AcceptedJobsPage> {
children: <Widget>[ children: <Widget>[
Text( Text(
DateFormat('dd.MM.yyyy HH:mm').format(DateTime.parse(job.ordertime)).toString(), DateFormat('dd.MM.yyyy HH:mm').format(DateTime.parse(job.ordertime)).toString(),
style: TextStyle(backgroundColor: isJobInFuture(job) ? Colors.yellow : Colors.white), style: TextStyle(backgroundColor: isJobInFuture(job) ? Colors.yellow : Colors.transparent),
textAlign: TextAlign.left, textAlign: TextAlign.left,
), ),
Text( Text(
+1 -1
View File
@@ -80,7 +80,7 @@ Future<void> showAcceptJobsPopup(BuildContext context, List<Job> jobs) async {
child: Text( child: Text(
DateFormat('dd.MM.yyyy HH:mm').format(DateTime.parse(job.ordertime)).toString(), DateFormat('dd.MM.yyyy HH:mm').format(DateTime.parse(job.ordertime)).toString(),
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle(backgroundColor: isJobInFuture(job) ? Colors.yellow : Colors.white), style: TextStyle(backgroundColor: isJobInFuture(job) ? Colors.yellow : Colors.transparent),
), ),
), ),
SizedBox(width: double.infinity, child: Text('Auftragsnummer: ${job.id}', textAlign: TextAlign.left)), SizedBox(width: double.infinity, child: Text('Auftragsnummer: ${job.id}', textAlign: TextAlign.left)),
+1 -1
View File
@@ -5,7 +5,7 @@ import 'package:stadtbote/tools/mqtt_core.dart';
import 'package:stadtbote/tools/util.dart'; import 'package:stadtbote/tools/util.dart';
void showInfosPopup(BuildContext context, SessionStatus? status) async { void showInfosPopup(BuildContext context, SessionStatus? status) async {
var text = "Versionsnummer: a203\n"; var text = "Versionsnummer: a205\n";
text += "Verbindungsstatus: ${MqttCore.instance.connectionState == ConnectionStateEnum.connected ? "Verbunden" : "NICHT verbunden"}\n"; text += "Verbindungsstatus: ${MqttCore.instance.connectionState == ConnectionStateEnum.connected ? "Verbunden" : "NICHT verbunden"}\n";
text += "GPS-Status: ${MyApp.currentPosition != null ? MyApp.currentPosition!.timestamp.toString() : "Unbekannt"}\n"; text += "GPS-Status: ${MyApp.currentPosition != null ? MyApp.currentPosition!.timestamp.toString() : "Unbekannt"}\n";
text += "\n"; text += "\n";
+2 -3
View File
@@ -1,4 +1,3 @@
import 'dart:developer';
import 'dart:io'; import 'dart:io';
import 'package:audioplayers/audioplayers.dart'; import 'package:audioplayers/audioplayers.dart';
@@ -74,11 +73,11 @@ class Util {
} }
static logInfo(String message) { static logInfo(String message) {
log(message); debugPrint(message);
} }
static logException(String message) { static logException(String message) {
log('Exception: $message'); debugPrint('Exception: $message');
} }
static int fastHash(String string) { static int fastHash(String string) {