Open popeyelau opened 3 years ago
Splash.imageset
Splash.imageset/Contents.json
{ "images": [ { "idiom": "iphone", "scale": "1x" }, { "idiom": "iphone", "filename": "640*960.png", "scale": "2x" }, { "idiom": "iphone", "filename": "1125*2436.png", "scale": "3x" }, { "idiom": "iphone", "subtype": "retina4", "scale": "1x" }, { "idiom": "iphone", "filename": "640*1136.png", "subtype": "retina4", "scale": "2x" }, { "idiom": "iphone", "subtype": "retina4", "scale": "3x" }, { "idiom": "iphone", "filename": "1242*2208.png", "subtype": "736h", "scale": "3x" }, { "idiom": "iphone", "filename": "750*1334.png", "subtype": "667h", "scale": "2x" }, { "idiom": "iphone", "filename": "1125*2436.png", "subtype": "2436h", "scale": "3x" }, { "idiom": "iphone", "filename": "1242*2688.png", "subtype": "2688h", "scale": "3x" }, { "idiom": "iphone", "filename": "828*1792.png", "subtype": "1792h", "scale": "2x" } ], "info": { "version": 1, "author": "xcode" } }
LaunchScreen.storyboard
UIImageView
Splash
Flutter 中读取 iOS Assets.xcassets 图片资源 iOS 读取 Flutter assets 图片资源 安装官方插件 ios_platform_images
Splash.imageset
Splash.imageset/Contents.json
内容如下LaunchScreen.storyboard
添加UIImageView
设好约束,图片选择Splash
即可Flutter 中读取 iOS Assets.xcassets 图片资源 iOS 读取 Flutter assets 图片资源 安装官方插件 ios_platform_images