Fehlerkorrekturen und Erweiterungen
This commit is contained in:
1 parent
1207d9c517
commit
fcb3ecdbb4
17 files changed
+22
-442
No files matched your search
@@ -258,7 +258,8 @@ class _TaskListPageState extends State<TaskListPage> with ProducerMixin {
|
||||
Util.logInfo('Task ${taskInfo.task.sId} called');
|
||||
|
||||
if (!mounted) return;
|
||||
showTaskArrivedPopup(context, taskInfo, () async {
|
||||
final currentContext = context;
|
||||
showTaskArrivedPopup(currentContext, taskInfo, () async {
|
||||
DateFormat dateFormat = DateFormat("dd.MM.yyyy HH:mm");
|
||||
|
||||
var answer = await _createAnswerHeader(taskInfo);
|
||||
@@ -281,7 +282,8 @@ class _TaskListPageState extends State<TaskListPage> with ProducerMixin {
|
||||
Util.logInfo('Task ${taskInfo.task.sId} called');
|
||||
|
||||
if (!mounted) return;
|
||||
showComissionNumberPopup(context, taskInfo, (comissionNumber) async {
|
||||
final currentContext = context;
|
||||
showComissionNumberPopup(currentContext, taskInfo, (comissionNumber) async {
|
||||
var answer = await _createAnswerHeader(taskInfo);
|
||||
answer.val = comissionNumber;
|
||||
|
||||
@@ -323,7 +325,8 @@ class _TaskListPageState extends State<TaskListPage> with ProducerMixin {
|
||||
Util.logInfo('Task ${taskInfo.task.sId} called');
|
||||
|
||||
if (!mounted) return;
|
||||
showTakePhotosPopup(context, taskInfo, (List<Uint8List>? photos) async {
|
||||
final currentContext = context;
|
||||
showTakePhotosPopup(currentContext, taskInfo, (List<Uint8List>? photos) async {
|
||||
if (photos != null) {
|
||||
await MyApp.isarInstance.writeTxn(() async {
|
||||
await MyApp.isarInstance.pictures.filter().tourIdEqualTo(widget.tour.id).deleteAll();
|
||||
@@ -354,7 +357,9 @@ class _TaskListPageState extends State<TaskListPage> with ProducerMixin {
|
||||
void _processStationNotice(TaskInfo taskInfo) {
|
||||
Util.logInfo('Task ${taskInfo.task.sId} called');
|
||||
|
||||
showStationNoticePopup(context, taskInfo, (notice) async {
|
||||
if (!mounted) return;
|
||||
final currentContext = context;
|
||||
showStationNoticePopup(currentContext, taskInfo, (notice) async {
|
||||
var answer = await _createAnswerHeader(taskInfo);
|
||||
answer.val = notice;
|
||||
|
||||
@@ -364,7 +369,9 @@ class _TaskListPageState extends State<TaskListPage> with ProducerMixin {
|
||||
|
||||
_finishTaskProcessing(taskInfo);
|
||||
|
||||
setState(() {});
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -372,7 +379,8 @@ class _TaskListPageState extends State<TaskListPage> with ProducerMixin {
|
||||
Util.logInfo('Task ${taskInfo.task.sId} called');
|
||||
|
||||
if (!mounted) return;
|
||||
showReceiptGiverPopup(context, taskInfo, (receiptGiver, selectedTourEntry) async {
|
||||
final currentContext = context;
|
||||
showReceiptGiverPopup(currentContext, taskInfo, (receiptGiver, selectedTourEntry) async {
|
||||
var answer = await _createAnswerHeader(taskInfo);
|
||||
answer.code = selectedTourEntry.code;
|
||||
answer.val = receiptGiver;
|
||||
|
||||
Reference in new issue
Block a user