I have a Flutter app, that is crashing because of images, so I install some plugins to test, after some study, I found a solution for my problem with memory in Flutter. It is setting the cache a Heigth and a Width because the image that comes from the server I did not put a good resize coding and some clients upload large images in dimensions
Image.network(
MainConfig.storageDoc + imageFeature,
cacheHeight: constraints.maxHeight.toInt(),
cacheWidth: constraints.maxWidth.toInt(),
height: constraints.maxHeight,
width: constraints.maxWidth,
fit: BoxFit.contain,
)
the cacheHeight and cacheWith from this save me from memory, now my app is fast but the image is POOR, how can I resize and maintain quality?