guard against possible late init errors

This commit is contained in:
julian 2023-04-24 12:12:47 -06:00
parent 573668a333
commit 0d448a8417
3 changed files with 3 additions and 3 deletions

View file

@ -109,7 +109,7 @@ class _ConfirmChangeNowSendViewState
time,
]);
sendProgressController.triggerSuccess();
sendProgressController.triggerSuccess?.call();
await Future<void>.delayed(const Duration(seconds: 5));
txid = results.first as String;

View file

@ -135,7 +135,7 @@ class _ConfirmTransactionViewState
time,
]);
sendProgressController.triggerSuccess();
sendProgressController.triggerSuccess?.call();
await Future<void>.delayed(const Duration(seconds: 5));
txid = results.first as String;

View file

@ -113,7 +113,7 @@ class _RestoringDialogState extends State<SendingTransactionDialog> {
}
class ProgressAndSuccessController {
late VoidCallback triggerSuccess;
VoidCallback? triggerSuccess;
}
class ProgressAndSuccess extends StatefulWidget {