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.yamlfile: Open thepubspec.yamlfile in your project’s root directory and add thenameparameter under thefluttersection. This parameter should have the desired app name as its value. Example: - Update the
AndroidManifest.xmlfile (for Android apps): Open theAndroidManifest.xmlfile located inandroid/app/src/main/directory of your project and change theandroid:labelattribute of theapplicationtag 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.plistfile (for iOS apps): Open theInfo.plistfile located in theios/Runner/directory of your project and change theCFBundleDisplayNamekey 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: