after successful registration navigate user to update profile and then to home
This commit is contained in:
@@ -60,7 +60,8 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
|
|||||||
//print("Here4");
|
//print("Here4");
|
||||||
//print(response.statusCode);
|
//print(response.statusCode);
|
||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
Navigator.of(context).pushNamed('/', arguments: widget.signedInUser);
|
Navigator.of(context)
|
||||||
|
.popAndPushNamed('/', arguments: widget.signedInUser);
|
||||||
String message =
|
String message =
|
||||||
"${widget.signedInUser.email}'s information has been updated successfully!";
|
"${widget.signedInUser.email}'s information has been updated successfully!";
|
||||||
successPopUp(message);
|
successPopUp(message);
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ class _RegisterState extends State<Register> {
|
|||||||
} else {
|
} else {
|
||||||
await signUserUp();
|
await signUserUp();
|
||||||
if (successfulSignUp) {
|
if (successfulSignUp) {
|
||||||
Navigator.of(context).pushNamed('/home');
|
Navigator.of(context).popAndPushNamed('/profile');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user