Reputation: 1
In my flutter project, I registered the image as a picture.
To use images by resolution
I created a 2.0x or 3.0x folder, but
What should I do?
pubspec.yaml is input as shown in the image below.
please help me!
I tried repare pubspec.yaml file.
assets/images/
to
In more deail
The image is called like this. Image. asset( 'assets/images/onboard/ic_tuto_01.png', width: width )
And I set the screen resolution to 2960 X 1400 on the Android device, but Images in the 2.0x or 3.0x folder are not output and Only the images in the /assets/images root are loaded continuously.
I don't think it's compatible with resolution.
What should I do?
Upvotes: 0
Views: 382
Reputation: 1
Self Answer.
folder edited like picture.
and
pubspec.ymal edited like this
2.0x and 3.0x is work!
Upvotes: 0