이재훈
이재훈

Reputation: 1

Flutter 2.0x 3.0x image not call

enter image description here

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.

enter image description here

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

Answers (1)

이재훈
이재훈

Reputation: 1

Self Answer.

show shape of folder image

folder edited like picture.

and

pubspec.ymal edited like this

show pubspec.yaml image

2.0x and 3.0x is work!

Upvotes: 0

Related Questions