fix: 更新弹窗无法关闭

This commit is contained in:
orz12
2024-06-02 14:39:24 +08:00
parent 93e369a5f8
commit 82befc4df0

View File

@@ -350,8 +350,8 @@ class Utils {
},
child: Text(
"点此查看完整更新即commit内容",
style:
TextStyle(color: Theme.of(context).colorScheme.primary),
style: TextStyle(
color: Theme.of(context).colorScheme.primary),
)),
],
),
@@ -361,7 +361,7 @@ class Utils {
TextButton(
onPressed: () {
setting.put(SettingBoxKey.autoUpdate, false);
Get.back();
SmartDialog.dismiss();
},
child: Text(
'不再提醒',
@@ -370,7 +370,7 @@ class Utils {
),
),
TextButton(
onPressed: () => Get.back(),
onPressed: () => SmartDialog.dismiss(),
child: Text(
'取消',
style: