From 9c61252610194c184bdd60f82c47e7e43c6a2631 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 17 Apr 2021 11:27:52 +0200 Subject: [PATCH] Go to login route --- lib/ui/routes/create_account_route.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/routes/create_account_route.dart b/lib/ui/routes/create_account_route.dart index 1617e24..41832b8 100644 --- a/lib/ui/routes/create_account_route.dart +++ b/lib/ui/routes/create_account_route.dart @@ -1,3 +1,4 @@ +import 'package:comunic/ui/routes/login_route.dart'; import 'package:comunic/ui/widgets/create_account_widget.dart'; import 'package:comunic/ui/widgets/login_routes_theme.dart'; import 'package:comunic/utils/intl_utils.dart'; @@ -47,6 +48,7 @@ class __CreateAccountRouteBodyState extends State<_CreateAccountRouteBody> { ), ); - Navigator.of(context).pop(); + Navigator.of(context) + .pushReplacement(MaterialPageRoute(builder: (c) => LoginRoute())); } }