change push to pop and push
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user