I have setup image assets like this:
/assets/images/img1.png
/assets/images/2.0x/img1.png
/assets/images/3.0x/img1.png
/assets/images/2.0x/img2.png
/assets/images/3.0x/img2.png
Then Image.asset('assets/images/img1.png') is displayed, but Image.asset('assets/images/img2.png') is not.
in pubspec.yaml assets defined like this:
assets:
- assets/images/
My question is do I have to add the /assets/images/img2.png ? If yes, then why? because the device is not 1x resolution. Probably 2x or 3x.
/assets/images/2.0x/img2.png? Because you don't have an img2.png on your assets folder root..