fix: before popping in futureloadingdialog, check if canPop (#1914)
This commit is contained in:
parent
5367dbfb59
commit
1ce541d254
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ class LoadingDialogState<T> extends State<LoadingDialog> {
|
|||
// stackTrace = s;
|
||||
// }),
|
||||
(result) {
|
||||
if (mounted) {
|
||||
if (mounted && Navigator.of(context).canPop()) {
|
||||
Navigator.of(context).pop<Result<T>>(Result.value(result));
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue