Baseflow / Baseflow/flutter_cache_manager

v3.3.1 DefaultCacheManager().getSingleFile(url) throws and pauses the app in debug mode, rather than let the error be caught

未关闭
#456 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Dart
星标
809
派生
510
平均合并
6 分钟
30 天内合并 PR
1

描述

try {
return await DefaultCacheManager().getSingleFile(url);
} catch (e) {
debugPrint('Failed to load image: ${e}');
return null;
}

Should not crash or pause the app

贡献指南

打开贡献指南

调研方向

从 DefaultCacheManager().getSingleFile(url) 入口开始,使用 issue 中所示的 try/catch 在调试模式下重现该失败。跟踪为什么错误会暂停或导致应用崩溃,而不是到达 catch 块;当该失败被捕获且应用不会暂停或崩溃时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart, flutter
领域
mobile-dev
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。