Skip to content

Commit

Permalink
Close the app when pressing back button/doing back gesture on the mai…
Browse files Browse the repository at this point in the history
…n screen.

This is standard behaviour Android, I don't know about iOS

This would fix #189 and fix #347
  • Loading branch information
kejml committed Apr 23, 2023
1 parent e7d0101 commit e13f20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/HomePage.dart
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

0 comments on commit e13f20a

Please sign in to comment.