Changing the App Launcher Name
By default, when a flutter app gets installed, the app name on the launcher is your Flutter project name. To change that to your desired application name on Android or iOS both, you need to change AndroidManifest.xml
and Info.plist
respectively.
For Android
Inside, find <application>
and change its android:label
property with your desired app name.
android/app/src/main/AndroidManifest.xml
<application
android:name="io.flutter.app.FlutterApplication"
android:label="your_app_name"
android:icon="@mipmap/ic_launcher">
iOS
ios/Runner/Info.plist
<key>CFBundleName</key>
<string>your_app_name</string>
That’s it. By having these changes, we’ll get an updated application name in launcher when our app gets installed on a device.
Change the icon manually
If the tools above doesn't work for you or maybe you need more customization, you can set the launcher icon manually.
For Android, go to android/app/src/main/res
folder. You should see some folders beginning with mipmap-*
which represent different pixel densities. Replace launcher_icon.png
file in each folders to use custom icons.
For iOS, the icon config and files are located inside ios/Runner/Assets.xcassets/AppIcon.appiconset
. The Contents.json
file defines a list of icon images with different sizes and scales. The files are located in the same folder. It's recommended to follow the guideline for designing iOS icon.
Useful links:
https://appicon.co/ for android
沒有留言:
發佈留言