mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
AppDrawer: Go back to the main route without stacking
The routing would be confusing otherwise
This commit is contained in:
@ -67,8 +67,8 @@ class AppDrawer extends StatelessWidget {
|
||||
if (m.settings.name == "/") {
|
||||
Navigator.pop(context);
|
||||
} else {
|
||||
Navigator.pop(context);
|
||||
Navigator.pushReplacementNamed(context, '/');
|
||||
Navigator.popUntil(
|
||||
context, (route) => route.settings.name == '/');
|
||||
}
|
||||
},
|
||||
),
|
||||
|
Reference in New Issue
Block a user