Skip to content

Commit

Permalink
Merge pull request #1778 from bitmark-inc/fix_pop_popup
Browse files Browse the repository at this point in the history
fix pop popup
  • Loading branch information
phuocbitmark authored Jun 21, 2024
2 parents 6b3d637 + 58c5c22 commit c40d037
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/util/ui_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Future askForNotification() async {
class UIHelper {
static String currentDialogTitle = '';
static final metricClient = injector.get<MetricClientService>();
static const String ignoreBackLayerPopUpRouteName = 'ignoreBackLayerPopUp';
static const String ignoreBackLayerPopUpRouteName = 'popUp.ignoreBackLayer';

static Future<dynamic> showDialog(
BuildContext context,
Expand Down Expand Up @@ -817,7 +817,11 @@ class UIHelper {
static void hideInfoDialog(BuildContext context) {
currentDialogTitle = '';
try {
Navigator.popUntil(context, (route) => route.settings.name != null);
Navigator.popUntil(
context,
(route) =>
route.settings.name != null &&
!route.settings.name!.toLowerCase().contains('popup'));
} catch (_) {}
}

Expand Down

0 comments on commit c40d037

Please sign in to comment.