fix: homeUI performance

This commit is contained in:
xkeyC 2025-04-05 16:44:00 +08:00
parent c02c98a19e
commit 8dd7ef53a1
2 changed files with 3 additions and 1 deletions

View File

@ -83,6 +83,8 @@ class LocalizationUIModel extends _$LocalizationUIModel {
final lang = await appConfBox.get("localization_selectedLanguage", final lang = await appConfBox.get("localization_selectedLanguage",
defaultValue: languageSupport.keys.first); defaultValue: languageSupport.keys.first);
state = state.copyWith(selectedLanguage: lang); state = state.copyWith(selectedLanguage: lang);
// fix for ui performance
await Future.delayed(Duration(milliseconds: 250));
await _loadData(); await _loadData();
} }

View File

@ -7,7 +7,7 @@ part of 'localization_ui_model.dart';
// ************************************************************************** // **************************************************************************
String _$localizationUIModelHash() => String _$localizationUIModelHash() =>
r'03f091f71cf0422c36c987844c92139a4407ecaa'; r'9c45db7c36a19710584d04441c4b263010e59e4e';
/// See also [LocalizationUIModel]. /// See also [LocalizationUIModel].
@ProviderFor(LocalizationUIModel) @ProviderFor(LocalizationUIModel)