mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 17:10:29 +00:00
fix(ui): show downloaded bytes for tasks with unknown size (#1508)
This commit is contained in:
1 file changed
+5
-1
@@ -95,7 +95,11 @@ class TaskCardFooter extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
task.total != null ? '${task.downloaded} / ${task.total}' : context.l10n.unknownSize,
|
||||
task.total != null
|
||||
? '${task.downloaded} / ${task.total}'
|
||||
: task.downloadedBytes == 0
|
||||
? context.l10n.unknownSize
|
||||
: task.downloaded,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(color: leftColor, fontSize: 10, height: 1),
|
||||
|
||||
Reference in new issue
Block a user