Skip to content

Commit

Permalink
fix: 3494 pop dialog navigator properly (#3528)
Browse files Browse the repository at this point in the history
Impacted file:
* `user_preferences_connect.dart`

Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
  • Loading branch information
Sudhanva-Nadiger and teolemon authored Jan 6, 2023
1 parent 9c0b8c3 commit a5949dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class UserPreferencesConnect extends AbstractUserPreferences {
.no_email_client_available_dialog_content),
positiveAction: SmoothActionButton(
onPressed: () {
Navigator.of(context).pop();
Navigator.of(context, rootNavigator: true).pop();
},
text: appLocalizations.okay,
),
Expand Down

0 comments on commit a5949dc

Please sign in to comment.