From 91738ea792f4526f85cee2d351eb669027bd90e0 Mon Sep 17 00:00:00 2001 From: David Adegoke <64401859+Blazebrain@users.noreply.github.com> Date: Thu, 8 Oct 2026 11:28:26 +0100 Subject: [PATCH] fix: handle wallet delete flushbar dismissal (#3697) --- lib/src/screens/wallet/wallet_edit_page.dart | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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); }