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
UPDATE: From the comments this answer seems to be out of date
The Flutter documentation points out where you can change the display name of your application for both Android and iOS. This may be what you are looking for:
For Android
It seems you have already found this in the AndroidManifest.xml
as the application
entry.
Review the default App Manifest file AndroidManifest.xml located in /android/app/src/main/ and verify the values are correct, especially:
application: Edit the application tag to reflect the final name of the app.
For iOS
See the Review Xcode project settings
section:
Navigate to your target’s settings in Xcode:
In Xcode, open Runner.xcworkspace in your app’s ios folder.
To view your app’s settings, select the Runner project in the Xcode project navigator. Then, in the main view sidebar, select the Runner target.
Select the General tab. Next, you’ll verify the most important settings:
Display Name: the name of the app to be displayed on the home screen and elsewhere.
There is a plugin.
https://pub.dev/packages/flutter_launcher_name
Write pubspec.yaml
dev_dependencies:
flutter_launcher_name: "^0.0.1"
flutter_launcher_name:
name: "yourNewAppLauncherName"
and run
flutter pub get
flutter pub run flutter_launcher_name:main
You can get the same result as editing AndroidManifes.xml
and Info.plist
.
The way of changing the name for ios and android clearly mentioned on the documentation as follows:
https://flutter.dev/docs/deployment/android https://flutter.dev/docs/deployment/ios
but, the case of ios after you change the Display Name from Xcode you cannot able to run the application on flutter way, like flutter run
because the flutter run expects the app name as Runner. even if you change the name in Xcode it doesn't work.
So, I fixed this as follow:
move to the location on your flutter project
ios/Runner.xcodeproj/project.pbxproj and find and replace your new name with Runner
then everything should work on flutter run
way
but don't forget to change the name display name on your next release time. otherwise, AppStore reject 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="myappname"`
//the rest of the code
</application>
</manifest>
Open AndroidManifest.xml
(located at android/app/src/main
)
<application
android:label="App Name" ...> // Your app name here
Open info.plist
(located at ios/Runner
)
<key>CFBundleName</key>
<string>App Name</string> // Your app name here
Don't forget to run
flutter clean
One problem is that in iOS Settings (iOS 12.x) if you change the Display Name, it leaves the app name and icon in iOS Settings as the old version.