Show Local Images and Server Images ( with Caching) in Flutter

Refresh

April 2019

Views

3 time

0

I am trying to show the image in a Widget picked from Image-Gallery as well as from the Network loaded images.

CachedNetworkImage is working fine with Network-images but when I try to pass selected image from gallery it's not working.

CachedNetworkImage(
      imageUrl: url,
      placeholder: (context, url) => new CircularProgressIndicator(),
      errorWidget: (context, url, error) => new Icon(Icons.error),
    );

Please help me to show this.

Objective is to 1. Can load local images 2. Can load network images 3. Can show Cached images.

Thank you in advance.

0 answers