Skip to content

Commit

Permalink
Merge pull request #395 from kejml/back-to-close
Browse files Browse the repository at this point in the history
  • Loading branch information
lucien144 committed May 19, 2023
2 parents 6452634 + 606b742 commit 69bab20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pages/HomePage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class _HomePageState extends State<HomePage> with RouteAware, WidgetsBindingObse
];

return WillPopScope(
onWillPop: () async => false,
onWillPop: () async => true,
child: Stack(children: [
Positioned.fill(
// Do not prevent the scroll down if the submenu is up. Only hide the submenu and keep scrolling...
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/TutorialPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class _TutorialPageState extends State<TutorialPage> {
setState(() => _loggingIn = true);
ApiController().getCredentials().then((credentials) {
MainRepository().credentials = credentials!;
Navigator.of(context).pushNamed('/home');
Navigator.of(context).pushNamedAndRemoveUntil('/home', ModalRoute.withName('/'));
}).catchError((error) => onError(error));
})
: slideButton(L.TUTORIAL_NYX,
Expand Down

0 comments on commit 69bab20

Please sign in to comment.