I am using the flutter to develop the app, and in the app, I want to use the image.
Since the image can increase the size of the app if not properly sized and it can also destroy the app if the image doesn't look good.
I am not worried about the resolution because I will aim for the highest display dpi and generate for all the lower screen, but the problem is in deciding the image size
I could have a large image or small image with the same dpi. In flutter number is used to size the element in the screen and this number could mean different pixel length for different device and it doesn't give the size of the card in the app, hence could not decide the image size.
How to determine the size of the image to use for the given element in App?
I will know the width and height of the item where I want to use my image in number (not in pixel length or any physical unit) but how do I decide the size of the image which would look good on all the devices?