From 189fd3f53af16d045fd62b7f98154147367a9f8f Mon Sep 17 00:00:00 2001 From: franzap <_@franzap.com> Date: Wed, 19 Feb 2025 12:31:25 -0300 Subject: [PATCH] Show starting download instead of 0% --- lib/widgets/install_button.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/widgets/install_button.dart b/lib/widgets/install_button.dart index 25dde47..8c263d1 100644 --- a/lib/widgets/install_button.dart +++ b/lib/widgets/install_button.dart @@ -129,7 +129,9 @@ class InstallButton extends HookConsumerWidget { ? Text('Install') : Center(child: SpinningLogo(size: 40))), DownloadingInstallProgress(:final progress) => Text( - '${(progress * 100).floor()}%', + progress == 0 + ? 'Starting download...' + : '${(progress * 100).floor()}%', style: TextStyle(fontWeight: FontWeight.bold), ), VerifyingHashProgress() => Text('Verifying file integrity'),