From b18a0c45265cc0b665981733469085fb64ff3bd3 Mon Sep 17 00:00:00 2001 From: Sven Carstensen Date: Tue, 27 Feb 2024 14:27:10 +0100 Subject: [PATCH] Erweiterungen Ranking --- lib/content_views/accepted_jobs_page.dart | 2 +- lib/popups/accept_jobs_popup.dart | 2 +- lib/popups/infos_popup.dart | 2 +- lib/tools/util.dart | 5 ++--- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/content_views/accepted_jobs_page.dart b/lib/content_views/accepted_jobs_page.dart index 136682b..af5499e 100644 --- a/lib/content_views/accepted_jobs_page.dart +++ b/lib/content_views/accepted_jobs_page.dart @@ -89,7 +89,7 @@ class _AcceptedJobsPageState extends State { children: [ Text( 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, ), Text( diff --git a/lib/popups/accept_jobs_popup.dart b/lib/popups/accept_jobs_popup.dart index 497deff..ed8d031 100644 --- a/lib/popups/accept_jobs_popup.dart +++ b/lib/popups/accept_jobs_popup.dart @@ -80,7 +80,7 @@ Future showAcceptJobsPopup(BuildContext context, List jobs) async { child: Text( DateFormat('dd.MM.yyyy HH:mm').format(DateTime.parse(job.ordertime)).toString(), 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)), diff --git a/lib/popups/infos_popup.dart b/lib/popups/infos_popup.dart index 1d9c6f8..9695dea 100644 --- a/lib/popups/infos_popup.dart +++ b/lib/popups/infos_popup.dart @@ -5,7 +5,7 @@ import 'package:stadtbote/tools/mqtt_core.dart'; import 'package:stadtbote/tools/util.dart'; 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 += "GPS-Status: ${MyApp.currentPosition != null ? MyApp.currentPosition!.timestamp.toString() : "Unbekannt"}\n"; text += "\n"; diff --git a/lib/tools/util.dart b/lib/tools/util.dart index f4f1a3b..400fc1e 100644 --- a/lib/tools/util.dart +++ b/lib/tools/util.dart @@ -1,4 +1,3 @@ -import 'dart:developer'; import 'dart:io'; import 'package:audioplayers/audioplayers.dart'; @@ -74,11 +73,11 @@ class Util { } static logInfo(String message) { - log(message); + debugPrint(message); } static logException(String message) { - log('Exception: $message'); + debugPrint('Exception: $message'); } static int fastHash(String string) {