更新顶部系统状态栏颜色

This commit is contained in:
wyf
2026-04-07 14:49:31 +08:00
parent 0ead6eb952
commit 30d7764a10
118 changed files with 897 additions and 246 deletions

View File

@@ -49,12 +49,11 @@ class AppLanguage extends Translations {
// }
// }
Future<void> loadLanguage(String languageCode,
{int project = 1}) async {
Future<void> loadLanguage(String languageCode, {int project = 1}) async {
try {
final jsonString;
// 加载 JSON 文件
if (project ==APPPackageType.TH.code ) {
if (project == APPPackageType.TH.code) {
jsonString =
await rootBundle.loadString('assets/langs/$languageCode.json');
} else if (project == APPPackageType.MHT.code) {
@@ -115,6 +114,6 @@ class AppLanguage extends Translations {
}
bool isChinese() {
return _currentLanguageCode == "zh_CN"||_currentLanguageCode == "zh_TW";
return _currentLanguageCode == "zh_CN" || _currentLanguageCode == "zh_TW";
}
}