Skip to content

Flutter-如何加载不同分辨率的图片 #1

@devImpChen

Description

@devImpChen

不同分辨率的图片分别放在2.0x,3.0x等文件夹下,会自动加载。

- 注意:不需要1.0x文件夹但必须有1.0x的图片

比如存在image文件夹,则1.0x的图片直接放在image文件夹下,并在image文件夹下创建2.0x、3.0x文件夹,里面放入相应分辨率的图片

图片

+ 参考 https://github.com/toly1994328/FlutterUnit/issues/26

Metadata

Metadata

Assignees

No one assigned

    Labels

    FlutterFlutter笔记集合

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions