diff --git a/lib/ui/routes/login_route.dart b/lib/ui/routes/login_route.dart index faa197a..b492e08 100644 --- a/lib/ui/routes/login_route.dart +++ b/lib/ui/routes/login_route.dart @@ -36,10 +36,10 @@ class _LoginRouteState extends State { children: [ LoginWidget( onSignedIn: () { - Navigator.pushReplacement( - context, - MaterialPageRoute( - builder: (b) => InitializeWidget())); + final nav = Navigator.of(context); + nav.pop(); + nav.pushReplacement(MaterialPageRoute( + builder: (b) => InitializeWidget())); }, ), ListTile(