TF-297 Store language selected when user changed

This commit is contained in:
dab246
2022-07-08 14:35:18 +07:00
committed by Dat H. Pham
parent 5c260098c6
commit 53b9745992
15 changed files with 142 additions and 30 deletions
@@ -14,6 +14,7 @@ import 'package:tmail_ui_user/features/login/data/local/account_cache_manager.da
import 'package:tmail_ui_user/features/login/data/local/oidc_configuration_cache_manager.dart';
import 'package:tmail_ui_user/features/login/data/local/token_oidc_cache_manager.dart';
import 'package:tmail_ui_user/features/mailbox/data/local/mailbox_cache_manager.dart';
import 'package:tmail_ui_user/features/manage_account/data/local/language_cache_manager.dart';
import 'package:tmail_ui_user/features/thread/data/local/email_cache_manager.dart';
class LocalBindings extends Bindings {
@@ -41,6 +42,7 @@ class LocalBindings extends Bindings {
Get.put(AccountCacheClient());
Get.put(AccountCacheManager(Get.find<AccountCacheClient>()));
Get.put(OidcConfigurationCacheManager(Get.find<SharedPreferences>()));
Get.put(LanguageCacheManager(Get.find<SharedPreferences>()));
Get.put(CachingManager(
Get.find<MailboxCacheClient>(),
Get.find<StateCacheClient>(),