update nav podst update
This commit is contained in:
parent
4f5ed39a73
commit
38974a82b6
2 changed files with 16 additions and 8 deletions
|
|
@ -122,12 +122,12 @@ class _MihBusinessProfileState extends State<MihBusinessProfile> {
|
|||
}
|
||||
Navigator.of(context).pop();
|
||||
Navigator.of(context).pop();
|
||||
Navigator.of(context).pop();
|
||||
Navigator.of(context).pushNamed(
|
||||
'/business-profile/manage',
|
||||
arguments: BusinessArguments(
|
||||
widget.arguments.signedInUser,
|
||||
widget.arguments.businessUser,
|
||||
widget.arguments.business,
|
||||
'/',
|
||||
arguments: AuthArguments(
|
||||
false,
|
||||
false,
|
||||
),
|
||||
);
|
||||
String message =
|
||||
|
|
|
|||
|
|
@ -144,12 +144,20 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
|
|||
//print("Here4");
|
||||
//print(response.statusCode);
|
||||
if (response.statusCode == 200) {
|
||||
Navigator.of(context).pop();
|
||||
Navigator.of(context).pop();
|
||||
Navigator.of(context).pushNamed(
|
||||
'/user-profile',
|
||||
arguments: AppProfileUpdateArguments(
|
||||
widget.arguments.signedInUser, widget.arguments.propicFile),
|
||||
'/',
|
||||
arguments: AuthArguments(
|
||||
true,
|
||||
false,
|
||||
),
|
||||
);
|
||||
// Navigator.of(context).pushNamed(
|
||||
// '/mzansi-profile',
|
||||
// arguments: AppProfileUpdateArguments(
|
||||
// widget.arguments.signedInUser, widget.arguments.propicFile),
|
||||
// );
|
||||
String message =
|
||||
"${widget.arguments.signedInUser.email}'s information has been updated successfully!";
|
||||
successPopUp(message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue