change push to pop and push
This commit is contained in:
parent
c289056ab1
commit
76678e4b2d
1 changed files with 4 additions and 4 deletions
|
|
@ -166,8 +166,8 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
|
||||||
onTap: () {
|
onTap: () {
|
||||||
//signedInUser = snapshot.data!;
|
//signedInUser = snapshot.data!;
|
||||||
//print("MIHAppDrawer: ${signedInUser.runtimeType}");
|
//print("MIHAppDrawer: ${signedInUser.runtimeType}");
|
||||||
Navigator.of(context)
|
Navigator.of(context).popAndPushNamed('/profile',
|
||||||
.pushNamed('/profile', arguments: widget.signedInUser);
|
arguments: widget.signedInUser);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
|
|
@ -196,7 +196,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
|
||||||
print(error);
|
print(error);
|
||||||
});
|
});
|
||||||
if (await SuperTokens.doesSessionExist() == false) {
|
if (await SuperTokens.doesSessionExist() == false) {
|
||||||
Navigator.of(context).pushNamed('/');
|
Navigator.of(context).popAndPushNamed('/');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
@ -219,7 +219,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
|
||||||
MzanziInnovationHub.of(context)!.changeTheme(ThemeMode.dark);
|
MzanziInnovationHub.of(context)!.changeTheme(ThemeMode.dark);
|
||||||
//print("Dark Mode: $darkm");
|
//print("Dark Mode: $darkm");
|
||||||
}
|
}
|
||||||
Navigator.of(context).pushNamed('/home');
|
Navigator.of(context).popAndPushNamed('/home');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue