[ad_1]
I adopted this docs Flutter guideline to let Flutter load resolution-appropriate pictures for the present system pixel ratio.
what I did folders like this:
belongings/icons/my_icon.png
belongings/icons/1.5x/my_icon.png
belongings/icons/2.0x/my_icon.png
belongings/icons/3.0x/my_icon.png
belongings/icons/4.0x/my_icon.png
And name it like this:
Picture.asset("belongings/icons/my_icon.png"),
It’s work high-quality (get acceptable pixel ratio picture) for present cellular screens, but it surely would not work on iPad & pill gadgets display (would not get acceptable pixel ratio picture which it ought to be massive picture like picture in 4.0x or in 3.0x folders).
Whereas once I add icon manually (from 4.0x or 3.0x folders) it work high-quality, present greater measurement of icon like this:
Picture.asset("belongings/icons/4.0x/my_icon.png"),
Why it’s work high-quality on cellular screens, and would not work on iPad & pill gadgets display.
[ad_2]
