flutter icon+launch

在Android Studio上修改icon与launch

一、iOS:
Launch:

1、先找到Launch路径:ios/Runner/Assets.xcassets/LaunchImage.imageset
2、替换自己的启动图,并修改Contents.json


Icon:

1、先找到Launch路径:ios/Runner/Assets.xcassets/AppIcon.appiconset
2、替换自己的icon,并修改Contents.json
*通常我都是打开xocde在Assets.xcassets里修改AppIcon


二、Android:
Launch:

1、先找到Launch路径:android/app/src/main/res/drawable找到launch_background.xml文件
2、把<item>注释放开,文件里的android:src="@mipmap/launch_image"说明启动图的名称为launch_image,也可以自己更换
3、在mipmap文件中添加名为launch_image的启动图


Icon:

1、先找到Launch路径:android/app/src/main找到AndroidManifest.xml文件
2、文件里android:icon="@mipmap/ic_launcher">的ic_launcher为icon的名称
3、顺便改个app名:android:label="app名"
4、在mipmap文件中添加名为ic_launcher的icon图


Android尺寸如下:
launch+icon尺寸
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容