Baseflow / Baseflow/flutter_cache_manager

If image (DOES NOT EXIST) AND (maxWidth/maxHeight) ARE set, the stream never closes

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

Descrizione

If image (DOES NOT EXIST) AND (maxWidth/maxHeight) ARE set, the stream never closes and there is endless waiting for the image. Especially a problem when trying to get images in a FutureBuilder or when doing a retry to get the image again, nothing happens as an image streamlistener is already running.

This is in the context of a `CachedNetworkImageProvider`.

Removing (maxWidth/maxHeight) solves the issue. Then the stream closes and things work as they should.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start at CachedNetworkImageProvider and reproduce the issue with a missing image while maxWidth or maxHeight is set. Verify that the image stream closes and that a FutureBuilder or retry can request the image again without an existing listener blocking it.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.