How to inscribe the image into the space allocated during layout. Set the BoxFit value as you want.
final BoxFit imageFit;