diff --git a/lib/src/screens/wallet/wallet_edit_page.dart b/lib/src/screens/wallet/wallet_edit_page.dart index 88222ba4d..20f979389 100644 --- a/lib/src/screens/wallet/wallet_edit_page.dart +++ b/lib/src/screens/wallet/wallet_edit_page.dart @@ -229,7 +229,17 @@ class WalletEditPage extends BasePage { Future hideProgressText() async { try { await Future.delayed(Duration(milliseconds: 250)); - await _progressBar?.dismiss(); + + final bar = _progressBar; + final barRoute = bar?.flushbarRoute; + + if (bar != null && barRoute != null && barRoute.isActive) { + if (bar.isShowing()) { + await bar.dismiss(); + } else { + barRoute.navigator?.removeRoute(barRoute); + } + } } catch (e) { printV(e); }