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