From ce7f633a85f46b41a6d144a4a15448d5d9163bf4 Mon Sep 17 00:00:00 2001 From: Syed Taha Alam Date: Mon, 12 May 2025 11:13:59 +0300 Subject: [PATCH] commented to not to clear the sharedpref --- lib/core/viewModel/authentication_view_model.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/viewModel/authentication_view_model.dart b/lib/core/viewModel/authentication_view_model.dart index cdb2bbf7..4dedbbea 100644 --- a/lib/core/viewModel/authentication_view_model.dart +++ b/lib/core/viewModel/authentication_view_model.dart @@ -407,7 +407,8 @@ class AuthenticationViewModel extends BaseViewModel { logout({bool isFromLogin = false}) async { localToken = ""; String? lang = await sharedPref.getString(APP_Language); - await Utils.clearSharedPref(); + //COMMENTED THE NOT TO CLEAR THE SHARED PREF + // await Utils.clearSharedPref(); doctorProfile = null; sharedPref.setString(APP_Language, lang ?? 'en'); deleteUser();