fix: retain zero download speed for known-size tasks

This commit is contained in:
Levi committed 2026-09-13 18:56:37 +08:00
1 parent 59a7d40bfe
commit c355f9ff5c
3 files changed
+74 -2

No files matched your search

@@ -106,7 +106,7 @@ class TaskCardFooter extends StatelessWidget {
),
),
const SizedBox(width: 12),
if (task.speed != null && !isError) ...[
if (task.speed != null) ...[
_TaskTransferSpeed(icon: Icons.south, value: task.speed!, color: metaColor),
const SizedBox(width: 8),
TickDivider(color: palette.progressTrack),