mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 22:33:42 +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: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
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,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(color: leftColor, fontSize: 10, height: 1),
|
style: TextStyle(color: leftColor, fontSize: 10, height: 1),
|
||||||
|
|||||||
Reference in new issue
Block a user