ソースを参照

fixed video loader bug

ashilkn 2 年 前
コミット
52b1946b06

+ 0 - 2
lib/core/cache/video_cache_manager.dart

@@ -1,5 +1,3 @@
-
-
 import 'package:flutter_cache_manager/flutter_cache_manager.dart';
 
 class VideoCacheManager {

+ 1 - 1
lib/ui/viewer/file/video_widget.dart

@@ -74,7 +74,7 @@ class _VideoWidgetState extends State<VideoWidget> {
       progressCallback: (count, total) {
         if (mounted) {
           setState(() {
-            _progress = count / total;
+            _progress = count / (widget.file.fileSize ?? total);
             if (_progress == 1) {
               showShortToast(context, "Decrypting video...");
             }