Baseflow / Baseflow/flutter_cache_manager

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

Offen
#439 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Dart
Sterne
809
Forks
510
Ø Merge
6 Min.
Gemergte PRs (30 T.)
1

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
dart, flutter
Bereich
mobile
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.