Home > other >  FLUTTER - Reduce the quality of network image coming from http request so that it can load faster
FLUTTER - Reduce the quality of network image coming from http request so that it can load faster

Time:08-31

I'm trying to fetch images through a http request an ends up getting an image with a high resolution which sometimes is not loading if the internet connection is poor.

Is there any package/plugin available which can reduce the quality of an image that is coming from an http request?

Image.network(
  "${widget.jsonData["articles"][index]["urlToImage"]}",
    fit: BoxFit.fill,
 ),

CodePudding user response:

it's better if you use Save Jpeg as progressive

I don't believe you can do anything on the client side to control this behavior.

  • Related