基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
fix: 清除缓存功能失效
lt94e56cd0062100
diff --git a/lib/pages/about/about_page.dart b/lib/pages/about/about_page.dartindex c8fb56ef..fd117431 100644--- a/lib/pages/about/about_page.dart+++ b/lib/pages/about/about_page.dart@@ -45,9 +45,13 @@ class _AboutPageState extends State<AboutPage> {navigationBarState.showNavigate();}- Future<void> _getCacheSize() async {+ Future<Directory> _getCacheDir() async {Directory tempDir = await getTemporaryDirectory();- Directory cacheDir = Directory('${tempDir.path}/libCachedImageData');+ return Directory('${tempDir.path}/libCachedImageData');+ }++ Future<void> _getCacheSize() async {+ Directory cacheDir = await _getCacheDir();if (await cacheDir.exists()) {int totalSizeBytes = await _getTotalSizeOfFilesInDir(cacheDir);@@ -85,8 +89,8 @@ class _AboutPageState extends State<AboutPage> {}Future<void> _clearCache() async {- final cacheManager = DefaultCacheManager();- await cacheManager.emptyCache();+ final Directory libCacheDir = await _getCacheDir();+ await libCacheDir.delete(recursive: true);_getCacheSize();}