mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
guard against possible late init errors
This commit is contained in:
parent
573668a333
commit
0d448a8417
3 changed files with 3 additions and 3 deletions
|
@ -109,7 +109,7 @@ class _ConfirmChangeNowSendViewState
|
||||||
time,
|
time,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
sendProgressController.triggerSuccess();
|
sendProgressController.triggerSuccess?.call();
|
||||||
await Future<void>.delayed(const Duration(seconds: 5));
|
await Future<void>.delayed(const Duration(seconds: 5));
|
||||||
|
|
||||||
txid = results.first as String;
|
txid = results.first as String;
|
||||||
|
|
|
@ -135,7 +135,7 @@ class _ConfirmTransactionViewState
|
||||||
time,
|
time,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
sendProgressController.triggerSuccess();
|
sendProgressController.triggerSuccess?.call();
|
||||||
await Future<void>.delayed(const Duration(seconds: 5));
|
await Future<void>.delayed(const Duration(seconds: 5));
|
||||||
|
|
||||||
txid = results.first as String;
|
txid = results.first as String;
|
||||||
|
|
|
@ -113,7 +113,7 @@ class _RestoringDialogState extends State<SendingTransactionDialog> {
|
||||||
}
|
}
|
||||||
|
|
||||||
class ProgressAndSuccessController {
|
class ProgressAndSuccessController {
|
||||||
late VoidCallback triggerSuccess;
|
VoidCallback? triggerSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
class ProgressAndSuccess extends StatefulWidget {
|
class ProgressAndSuccess extends StatefulWidget {
|
||||||
|
|
Loading…
Reference in a new issue