mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-05 20:48:24 +00:00
Show starting download instead of 0%
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user