Show starting download instead of 0%

This commit is contained in:
franzap
2025-02-19 12:31:25 -03:00
parent 3997c65434
commit 189fd3f53a
+3 -1
View File
@@ -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'),