We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1368b24 + d17b880 commit 2910d02Copy full SHA for 2910d02
lib/providers/apps_provider.dart
@@ -5,6 +5,7 @@ import 'dart:async';
5
import 'dart:convert';
6
import 'dart:io';
7
import 'dart:math';
8
+import 'dart:ui';
9
import 'package:battery_plus/battery_plus.dart';
10
import 'package:fluttertoast/fluttertoast.dart';
11
import 'package:crypto/crypto.dart';
@@ -438,7 +439,7 @@ Future<File> downloadFile(
438
439
now.difference(lastProgressUpdate!) >=
440
downloadUIUpdateInterval)) {
441
progress = fullContentLength != null
- ? (received / fullContentLength) * 100
442
+ ? clampDouble((received / fullContentLength) * 100, 0, 100)
443
: 30;
444
onProgress(progress);
445
lastProgressUpdate = now;
0 commit comments