From aa46f6dc8647de53a025c2c1791d1b68a0092740 Mon Sep 17 00:00:00 2001 From: Gorniaky Date: Tue, 7 Jul 2026 17:10:23 -0300 Subject: [PATCH 1/2] fix(progress): adjust formatting in progress message output --- lib/utils/progress.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/utils/progress.dart b/lib/utils/progress.dart index 2ae2542..c2a3f2f 100644 --- a/lib/utils/progress.dart +++ b/lib/utils/progress.dart @@ -25,13 +25,11 @@ String formatProgressMessage({ final StringBuffer buffer = .new(prefixText); if (speed case final speed?) { - buffer.writeAll([" ", ?direction, Bytes.bits(speed * 8), "/s"]); + buffer.writeAll([" ", ?direction, Bytes.bits(speed * 8), "/s "]); } - buffer.write(" "); - if (total.isNegativeOrZero) { - buffer.write(Bytes(processed).toString(" ")); + buffer.write(Bytes(processed)); } else { buffer.write(percentFormatter.format(processed / total)); } From d86c0ab68a0849222ff783392c191fac42cf42b9 Mon Sep 17 00:00:00 2001 From: Gorniaky Date: Tue, 7 Jul 2026 17:12:38 -0300 Subject: [PATCH 2/2] =?UTF-8?q?fix(progress):=20ajustar=20formata=C3=A7?= =?UTF-8?q?=C3=A3o=20na=20sa=C3=ADda=20da=20mensagem=20de=20progresso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/utils/progress_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils/progress_test.dart b/test/utils/progress_test.dart index f646019..861e428 100644 --- a/test/utils/progress_test.dart +++ b/test/utils/progress_test.dart @@ -6,7 +6,7 @@ void main() { test("handles unknown totals", () { expect( formatProgressMessage(processed: 1024, total: -1), - contains("1.0 KB"), + contains("1.0KB"), ); }); });