I have created the app using flutter create testapp. Now, I want to change the App name from \"testapp\" to \"My Trips Tracker\". How can I do that ?
I have tried ch
Review the default App Manifest file AndroidManifest.xml
located in <app dir>/android/app/src/main
Edit the android:label
to your desire display name
You can change it in iOS without opening Xcode by editing the project/ios/Runner/info.plist <key>CFBundleDisplayName</key>
to the String that you want as your name.
For android, Change the app name from Android folder, in the AndroidManifest.xml file, android/app/src/main let the android label refer to the name you prefer for eg.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<application
android:label="test"
//the rest of the code
</application>
</manifest>
You can change it in iOS without opening Xcode by editing the project/ios/Runner/info.plist <key>CFBundleDisplayName</key>
to the String that you want as your name.
FWIW - I was getting frustrated with making changes in Xcode and Flutter, so I started committing all changes before opening Xcode, so I could see where the changes show up in the Flutter project.
As of 2019/12/21, you need to change the name: [NameOfYourApp] in pubspec.yaml. Then go to Edit > Find > Replace in Path, and replace all occurrences of your previous name.
Also, just for good measure, change the folder names in your android directory, e.g. android > app > src > main > java > com > example > yourappname.
Then in the console, in your app's root directory, run
flutter clean
It's very easy to changing the app display name
Android
Go to AndroidManifest.xml
, find <application> tag
. Change its android:label
property with your desired app name.
Navigate to the : android/app/src/main/AndroidManifest.xml
<application
android:name="io.flutter.app.FlutterApplication"
android:label="YourAppName"
android:icon="@mipmap/ic_launcher">
This portion represents the actual Android file naming system. Important information like Launcher Icon and App name can be controlled here. Modify the android:label
to change the App Name only.
iOS
For iOS, open info.plist. Change CFBundleName (Bundle Name).
Go to the Xcode project folder and open Info.plist
for edit (in Xcode you can choose Open As > Source Code in file context menu). All we need is edit value for key CFBundleName
. It’s a user-visible short name for the bundle.
Navigate to the: project/ios/Runner/Info.plist
<key>CFBundleName</key>
<string>YouAppName</string>
That’s achieved, your new app name will be displayed on the your phone now.