mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2025-12-15 00:48:52 +00:00
commit
adc97cf5bc
@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Changed "Gb" (which ordinarily would be Gigabits) to "GiB" in the download progress
|
||||
|
||||
## [0.1.2] - 2024-10-28
|
||||
|
||||
### Changed
|
||||
|
||||
@ -107,8 +107,9 @@ class _DownloadingGame extends StatelessWidget {
|
||||
final provider = Provider.of<Game>(context);
|
||||
final pourcent =
|
||||
(provider.currentProgress.toInt() / provider.maxProgress.toInt()) * 100;
|
||||
final currentGb = provider.currentProgress.toInt() / 1024 / 1024 / 1024;
|
||||
final maxGb = provider.maxProgress.toInt() / 1024 / 1024 / 1024;
|
||||
//1024^3 = 1073741824
|
||||
final currentGb = provider.currentProgress.toInt() / 1073741824;
|
||||
final maxGb = provider.maxProgress.toInt() / 1073741824;
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(bottom: 40.0),
|
||||
@ -118,7 +119,7 @@ class _DownloadingGame extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 8.0),
|
||||
child: Text(
|
||||
"${currentGb.toStringAsFixed(2)} / ${maxGb.toStringAsFixed(2)} Gb (${pourcent.toStringAsFixed(2)}%)",
|
||||
"${currentGb.toStringAsFixed(2)} / ${maxGb.toStringAsFixed(2)} GiB (${pourcent.toStringAsFixed(2)}%)",
|
||||
),
|
||||
),
|
||||
YaruLinearProgressIndicator(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user