change profile Update route to take in profile update argument object
This commit is contained in:
parent
935a7836fe
commit
ca4be29d0c
1 changed files with 2 additions and 2 deletions
|
|
@ -26,11 +26,11 @@ class RouteGenerator {
|
||||||
|
|
||||||
//User Profile
|
//User Profile
|
||||||
case '/user-profile':
|
case '/user-profile':
|
||||||
if (args is AppUser) {
|
if (args is AppProfileUpdateArguments) {
|
||||||
return MaterialPageRoute(
|
return MaterialPageRoute(
|
||||||
settings: settings,
|
settings: settings,
|
||||||
builder: (_) => ProfileUserUpdate(
|
builder: (_) => ProfileUserUpdate(
|
||||||
signedInUser: args,
|
arguments: args,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue