Able to config preferred language

This commit is contained in:
2025-02-01 19:35:50 +08:00
parent 5a85985534
commit 5d6fb2442f
11 changed files with 111 additions and 5 deletions

View File

@ -53,4 +53,11 @@ class UserProvider extends ChangeNotifier {
user = null;
notifyListeners();
}
void setLanguage(String? value) {
if (value == null) return;
if (user == null) return;
user = user!.copyWith(language: value);
notifyListeners();
}
}