905086
2026-11-04 9593973fb0ff112cf26266bfedbf45e6460b10bf
fluttergamebox/lib/widgets/download_manager.dart
@@ -136,17 +136,23 @@
                          Row(
                            children: [
                              Text(
                                task.finished
                                    ? '下载完成'
                                    : task.paused
                                        ? '已暂停'
                                        : '正在下载',
                                style: TextStyle(
                                    color: task.paused
                                        ? AppColors.yellow
                                task.extracting
                                    ? '正在解压安装...'
                                    : task.extractFailed
                                        ? '解压失败'
                                        : task.finished
                                            ? AppColors.green
                                            : AppColors.accent,
                                            ? '下载完成'
                                            : task.paused
                                                ? '已暂停'
                                                : '正在下载',
                                style: TextStyle(
                                    color: task.extractFailed
                                        ? AppColors.red
                                        : task.paused
                                            ? AppColors.yellow
                                            : task.finished
                                                ? AppColors.green
                                                : AppColors.accent,
                                    fontSize: 14,
                                    fontWeight: FontWeight.w500),
                              ),
@@ -154,7 +160,11 @@
                          ),
                          const SizedBox(height: 8),
                          Text(
                            '${formatBytes(task.speed)}/s',
                            task.extracting
                                ? '解压中,请勿关闭软件'
                                : task.extractFailed
                                    ? '压缩包保留在下载目录,可手动解压'
                                    : '${formatBytes(task.speed)}/s',
                            style: const TextStyle(
                                color: AppColors.textGray, fontSize: 13),
                          ),
@@ -281,7 +291,7 @@
                  children: [
                    Expanded(
                      child: ElevatedButton(
                        onPressed: task.finished
                        onPressed: task.finished || task.extracting
                            ? null
                            : () {
                                if (task.paused) {