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;
|
||||
|
||||
@@ -8,7 +8,7 @@ showTaskArrivedPopup(BuildContext context, TaskInfo taskInfo, Function() onFinis
|
||||
builder: (BuildContext context) {
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvoked: (bool didPop) async {
|
||||
onPopInvokedWithResult: (bool didPop, dynamic result) async {
|
||||
if (!didPop) {
|
||||
final shouldPop = await taskDialogSecurityException(context);
|
||||
if (shouldPop && context.mounted) {
|
||||
|
||||
@@ -9,7 +9,7 @@ showComissionNumberPopup(BuildContext context, TaskInfo taskInfo, Function(Strin
|
||||
builder: (BuildContext context) {
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvoked: (bool didPop) async {
|
||||
onPopInvokedWithResult: (bool didPop, dynamic result) async {
|
||||
if (!didPop) {
|
||||
final shouldPop = await taskDialogSecurityException(context);
|
||||
if (shouldPop && context.mounted) {
|
||||
|
||||
@@ -20,7 +20,7 @@ showPickupDeliveryStatusPopup(BuildContext context, TaskInfo taskInfo, Function(
|
||||
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvoked: (bool didPop) async {
|
||||
onPopInvokedWithResult: (bool didPop, dynamic result) async {
|
||||
if (!didPop) {
|
||||
final shouldPop = await taskDialogSecurityException(context);
|
||||
if (shouldPop && context.mounted) {
|
||||
|
||||
@@ -19,7 +19,7 @@ showReceiptGiverPopup(BuildContext context, TaskInfo taskInfo, Function(String,
|
||||
builder: (BuildContext context) {
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvoked: (bool didPop) async {
|
||||
onPopInvokedWithResult: (bool didPop, dynamic result) async {
|
||||
if (!didPop) {
|
||||
final shouldPop = await taskDialogSecurityException(context);
|
||||
if (shouldPop && context.mounted) {
|
||||
|
||||
@@ -10,7 +10,7 @@ showSignaturePopup(BuildContext context, TaskInfo taskInfo, Function(String?) on
|
||||
builder: (BuildContext context) {
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvoked: (bool didPop) async {
|
||||
onPopInvokedWithResult: (bool didPop, dynamic result) async {
|
||||
if (!didPop) {
|
||||
final shouldPop = await taskDialogSecurityException(context);
|
||||
if (shouldPop) {
|
||||
|
||||
@@ -9,7 +9,7 @@ showStationNoticePopup(BuildContext context, TaskInfo taskInfo, Function(String)
|
||||
builder: (BuildContext context) {
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvoked: (bool didPop) async {
|
||||
onPopInvokedWithResult: (bool didPop, dynamic result) async {
|
||||
if (!didPop) {
|
||||
final shouldPop = await taskDialogSecurityException(context);
|
||||
if (shouldPop && context.mounted) {
|
||||
|
||||
@@ -18,7 +18,7 @@ Future<void> showTakePhotosPopup(BuildContext context, TaskInfo taskInfo, Functi
|
||||
builder: (BuildContext context) {
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvoked: (bool didPop) async {
|
||||
onPopInvokedWithResult: (bool didPop, dynamic result) async {
|
||||
if (!didPop) {
|
||||
final shouldPop = await taskDialogSecurityException(context);
|
||||
if (shouldPop && context.mounted) {
|
||||
|
||||
@@ -7,7 +7,7 @@ showZipPopup(BuildContext context, String text, String buttonText, Function(Stri
|
||||
builder: (BuildContext context) {
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvoked: (bool didPop) async {
|
||||
onPopInvokedWithResult: (bool didPop, dynamic result) async {
|
||||
if (!didPop) {
|
||||
final shouldPop = await taskDialogSecurityException(context);
|
||||
if (shouldPop && context.mounted) {
|
||||
|
||||
Reference in new issue
Block a user