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

Aperta
#456 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Dart
Stelle
809
Fork
510
Merge medio
6m
PR unite (30g)
1

Descrizione

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

Should not crash or pause the app

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start at the DefaultCacheManager().getSingleFile(url) entry point and reproduce the failure in debug mode using the try/catch shown in the issue. Trace why the error pauses or crashes the app instead of reaching the catch block; done means the failure is caught without pausing or crashing the app.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
dart, flutter
Ambito
mobile-dev
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.