To change the app display name in a Flutter app, you need to update the pubspec.yaml
file and the AndroidManifest.xml
and/or Info.plist
files.
Here are the steps:
- Update the
pubspec.yaml
file: Open thepubspec.yaml
file in your project’s root directory and add thename
parameter under theflutter
section. This parameter should have the desired app name as its value. Example: - Update the
AndroidManifest.xml
file (for Android apps): Open theAndroidManifest.xml
file located inandroid/app/src/main/
directory of your project and change theandroid:label
attribute of theapplication
tag to the desired app name. Example:
<application
android:name="io.flutter.app.FlutterApplication"
android:label="My Awesome App" <!-- Change this to the desired app name -->
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
- Update the
Info.plist
file (for iOS apps): Open theInfo.plist
file located in theios/Runner/
directory of your project and change theCFBundleDisplayName
key to the desired app name. Example: - After making these changes, rebuild your app and you should see the updated app name in the launcher and other places where the app name is displayed.
Update the Info.plist
file (for iOS apps): Open the Info.plist
file located in the ios/Runner/
directory of your project and change the CFBundleDisplayName
key to the desired app name. Example: