新增汉化更新提示

新增周期性汉化版本检查
This commit is contained in:
2023-12-06 22:45:36 +08:00
parent 39b357d223
commit eee1bfdeb0
6 changed files with 107 additions and 16 deletions

View File

@ -466,6 +466,17 @@ class HomeUI extends BaseUI<HomeUIModel> {
Text(item.infoString),
],
)),
if (item.key == "localization" &&
model.localizationUpdateInfo != null)
Container(
padding: const EdgeInsets.only(
top: 3, bottom: 3, left: 8, right: 8),
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(12)),
child:
Text(model.localizationUpdateInfo?.key ?? " "),
),
const SizedBox(width: 12),
if (item.key == "auto_check" && model.isChecking)
const ProgressRing()