Skip to content

Commit

Permalink
SendErrorDialog popUntil
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmer committed Jul 11, 2024
1 parent 0be7948 commit 44c14d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class _SendErrorDialogState extends State<SendErrorDialog> {
],
);
void _popDialogs(BuildContext context) {
Navigator.popUntil(context, (route) => SettingsView.routeName == route.settings.name);
Navigator.of(context).popUntil((route) => SettingsView.routeName == route.settings.name || route.isFirst);
}
}

Expand All @@ -96,7 +96,7 @@ class NoLogDialog extends StatelessWidget {
overflow: TextOverflow.fade,
softWrap: false,
),
onPressed: () => Navigator.pop(context),
onPressed: () => Navigator.of(context).maybePop(),
),
],
);
Expand Down

0 comments on commit 44c14d3

Please sign in to comment.