From 6dccb21be6fd92b4f437785990cf413f3a88b52b Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 27 Apr 2021 12:06:17 +0200 Subject: [PATCH] Fix issue --- lib/ui/routes/login_route.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(