fix 下载百分比

This commit is contained in:
xkeyC 2024-02-24 21:02:06 +08:00
parent a6664f750d
commit 5b13996591
2 changed files with 3 additions and 3 deletions

View File

@ -17,9 +17,9 @@ import 'package:uuid/uuid.dart';
import 'package:window_manager/window_manager.dart';
class AppConf {
static const String appVersion = "2.10.5+1 Beta";
static const String appVersion = "2.10.6 Beta";
static const int appVersionCode = 40;
static const String appVersionDate = "2024-02-17";
static const String appVersionDate = "2024-02-24";
static const gameChannels = ["LIVE", "PTU", "EPTU"];

View File

@ -129,7 +129,7 @@ class DownloadsUI extends BaseUI<DownloadsUIModel> {
)
else if (task.status == "active")
Text(
"下载中... (${((task.completedLength ?? 0) / (task.totalLength ?? 1)).toStringAsFixed(4)}%)")
"下载中... (${((task.completedLength ?? 0) * 100 / (task.totalLength ?? 1)).toStringAsFixed(4)}%)")
else
Text(
"状态:${model.statusMap[task.status]}",