Baseflow / Baseflow/flutter_cache_manager

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

Open
#439 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
809
Forks
510
Avg merge
6m
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.