Fehlerkorrekturen
This commit is contained in:
1 parent
4eef0fa119
commit
92df2a9156
6 files changed
+24
-9
No files matched your search
@@ -24,6 +24,9 @@ Future<void> showAcceptJobsPopup(BuildContext context, List<Job> jobs, Function
|
||||
builder: (BuildContext context) {
|
||||
return WillPopScope(
|
||||
onWillPop: () async {
|
||||
MessageService().unsubscribe(Constants.messageTopicJobDeleted, jobsMap);
|
||||
MessageService().unsubscribe(Constants.messageTopicJobReceived, jobsMap);
|
||||
|
||||
Navigator.of(context).pop();
|
||||
|
||||
onFinished();
|
||||
@@ -181,7 +184,13 @@ Future<void> showAcceptJobsPopup(BuildContext context, List<Job> jobs, Function
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
Expanded(
|
||||
child: getDefaultButton('Annehmen', () => {_sendAnswer(job, 1), jobsMap.remove(job), setState(() {})}),
|
||||
child: getDefaultButton('Annehmen', () {
|
||||
_sendAnswer(job, 1);
|
||||
|
||||
jobsMap.removeWhere((key, value) => key == job.id);
|
||||
|
||||
setState(() {});
|
||||
}),
|
||||
)
|
||||
])
|
||||
],
|
||||
|
||||
@@ -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: a212\n";
|
||||
var text = "Versionsnummer: a213\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";
|
||||
|
||||
Reference in new issue
Block a user