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


April 2019


3 time


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.

      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