Last Updated on 2021-10-16 by Clay
When we developing a Flutter App, we named a temporary name in the first build. But in the process of development, perhaps changes in functions or changes in ideas, we may have to change the name of the App to a different one.
In the Flutter project, if we want to change the name of the App, the steps we need to perform are different depending on the Android and iOS platforms.
The following will record the practices of the different platforms.
Change the App name
Android
We can edit the android/app/src/main/AndroidManifest.xml file, change the APPNAME attribute:
<application
android:name="io.flutter.app.FlutterApplication"
android:label="APPNAME"
android:icon="@mipmap/ic_launcher">
This will change the name of the App. If there is an old version of the App in the test device, it may need to be removed and reinstalled.
iOS
To edit ios/Runner/Info.plist file, and change the APPNAME attribute:
<key>CFBundleName</key>
<string>APPNAME</string>
If there is an old version of the App in the test device, it may need to be removed and resintalled.
References
- https://stackoverflow.com/questions/49353199/how-can-i-change-the-app-display-name-build-with-flutter
- https://medium.com/@vaibhavi.rana99/change-application-name-and-icon-in-flutter-bebbec297c57