From a2e471cb23105a13a2f291597dc3cd69b0f0edda Mon Sep 17 00:00:00 2001 From: yaso Date: Thu, 16 Jan 2025 12:13:04 +0200 Subject: [PATCH] fix fingerprint request after switching themes --- .../mih_components/mih_layout/mih_app_drawer.dart | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Frontend/lib/mih_components/mih_layout/mih_app_drawer.dart b/Frontend/lib/mih_components/mih_layout/mih_app_drawer.dart index e2b97130..2e28b7a7 100644 --- a/Frontend/lib/mih_components/mih_layout/mih_app_drawer.dart +++ b/Frontend/lib/mih_components/mih_layout/mih_app_drawer.dart @@ -287,7 +287,11 @@ class _MIHAppDrawerState extends State { }); if (await SuperTokens.doesSessionExist() == false) { - Navigator.of(context).popAndPushNamed('/'); + Navigator.of(context).pop(); + Navigator.of(context).popAndPushNamed( + '/', + arguments: AuthArguments(true, false), + ); } }, ), @@ -316,7 +320,12 @@ class _MIHAppDrawerState extends State { .changeTheme(ThemeMode.dark); //print("Dark Mode: $darkm"); } - Navigator.of(context).popAndPushNamed('/'); + Navigator.of(context).pop(); + Navigator.of(context).popAndPushNamed( + '/', + arguments: AuthArguments(true, false), + ); + // Navigator.of(context).popAndPushNamed('/',); }); }, child: Image(image: logoThemeSwitch),