From 6697e53613d5ce562a19795ab41b19803c2bb93d Mon Sep 17 00:00:00 2001
From: 905086 <k2049@qq.com>
Date: Sat, 07 Nov 2026 19:26:30 +0800
Subject: [PATCH] feat(tools): 新增工具卸载功能及相关实现
---
fluttergamebox/lib/widgets/download_manager.dart | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/fluttergamebox/lib/widgets/download_manager.dart b/fluttergamebox/lib/widgets/download_manager.dart
index 38c9446..ec5f683 100644
--- a/fluttergamebox/lib/widgets/download_manager.dart
+++ b/fluttergamebox/lib/widgets/download_manager.dart
@@ -54,7 +54,7 @@
Future<void> _launchGame(DownloadTask task) async {
final ok = await launchInstalledGame(task.title, task.launchExe);
if (!ok && mounted) {
- _toast('未找到游戏文件,请重新下载安装');
+ _toast(task.isTool ? '未找到工具文件,请重新下载安装' : '未找到游戏文件,请重新下载安装');
}
}
@@ -475,13 +475,13 @@
padding: const EdgeInsets.symmetric(vertical: 12),
),
child: (task.finished && !task.extractFailed)
- ? const Row(
+ ? Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
- Icon(Icons.play_arrow, size: 18),
- SizedBox(width: 8),
- Text('启动游戏',
- style: TextStyle(fontSize: 14)),
+ const Icon(Icons.play_arrow, size: 18),
+ const SizedBox(width: 8),
+ Text(task.isTool ? '启动' : '启动游戏',
+ style: const TextStyle(fontSize: 14)),
],
)
: const Text('取消安装'),
--
Gitblit v1.10.0