If this isn’t possible, you can use the cacheHeight and cacheWidth
parameters on the Image constructor:

This makes the engine decode this image at the specified size,
and reduces memory usage (decoding and storage is still more expensive
than if the image asset itself was shrunk).
The image is rendered to the constraints of the layout or width and height
regardless of these parameters.

This property can also be set in code:

More information

You can learn more at the following link:

Flutter documentation: debugInvertOversizedImages

Details Tree

Select the Details Tree tab to display the details tree for the
selected widget.

From the details tree, you can gather useful information about a
widget’s properties, render object, and children.

Track widget creation