Use it before:
After use it:
So just use it in your project!
It' s principle is same as ResizeImage
,simplely use it like this:
Image(
image: AutoResizeImage(
NetworkImage(
widget.imageUrl,
),
),
);
Just wrap your ImageProvider with it, it will reduce memory effectively.
Detail usage please read source code.