Skip to content

Loading widget is not shown when the imageProvider changed[BUG] #507

@khhily

Description

@khhily

I use photo_view version 0.12.0.
I have two imageProvider, and I need to change them via a button in the page to show by the widget PhotoViewGallery. They download images and show correctly.
But there's a little problem, the loading widget only show when the first imageProvider loading, when I change the imageProvider, the loading widget not show when imageProvider loading, and image will show correctly when imageProvider load complete.

My flutter version is 2.2.3

I found that when imageProvider changed in ImageWrapper, you only change the listener of imageProvider's ImageStream, but is not set the _loading to true, so the loadingWidget do not show.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions