How can I change the app display name build with Flutter?

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:

  1. Update the pubspec.yaml file: Open the pubspec.yaml file in your project’s root directory and add the name parameter under the flutter section. This parameter should have the desired app name as its value. Example:
  2. Update the AndroidManifest.xml file (for Android apps): Open the AndroidManifest.xml file located in android/app/src/main/ directory of your project and change the android:label attribute of the application 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>
  1. 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:
  2. 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:

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More