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