sign in smoothness
This commit is contained in:
parent
3efa6f9df1
commit
339c6868ef
4 changed files with 28 additions and 28 deletions
|
|
@ -49,7 +49,7 @@ class _RegisterState extends State<Register> {
|
|||
}),
|
||||
);
|
||||
if (response.statusCode == 201) {
|
||||
Navigator.of(context).popAndPushNamed('/home');
|
||||
Navigator.of(context).pushNamedAndRemoveUntil('/', (route) => false);
|
||||
signUpSuccess();
|
||||
// setState(() {
|
||||
// successfulSignUp = true;
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class _SignInState extends State<SignIn> {
|
|||
} else {
|
||||
await signUserIn();
|
||||
if (successfulSignIn) {
|
||||
Navigator.of(context).popAndPushNamed('/home');
|
||||
Navigator.of(context).pushNamedAndRemoveUntil('/', (route) => false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue