mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-28 06:28:41 +01:00
fix: handle wallet delete flushbar dismissal (#3697)
This commit is contained in:
@@ -229,7 +229,17 @@ class WalletEditPage extends BasePage {
|
||||
Future<void> 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user