Skip to content

Change App Name

Overview

This guide explains how to change the app name for the Android version of the SaleBot Chat Flutter project.

Steps to Change the App Name

1. Update the Android Manifest File

  1. Navigate to:
    android/app/src/main/AndroidManifest.xml
    
  2. Find the <application> tag and update the android:label attribute:
    <application
        android:name=".MainApplication"
        android:label="Your New App Name"
        android:icon="@mipmap/ic_launcher">
    

2. Update the App Name in res/values/strings.xml

  1. Open the file:
    android/app/src/main/res/values/strings.xml
    
  2. Modify the <string> tag with the name app_name:
    <string name="app_name">Your New App Name</string>
    

3. Update the pubspec.yaml

If you use the flutter_launcher_name package, modify the pubspec.yaml:

flutter_launcher_name:
  name: "Your New App Name"
Then run:
flutter pub get
flutter pub run flutter_launcher_name:main

4. Clear and Rebuild the Project

Run the following commands to ensure the changes take effect:

flutter clean
flutter pub get
flutter run

5. Verify the Changes

  • Check if the app name has been updated on the Android emulator or physical device.
  • If using an APK, install it and confirm the new app name appears on the home screen.

Additional Notes

  • If you are publishing to the Play Store, ensure the new app name is consistent across all metadata.
  • Restart the IDE if changes do not reflect immediately.

Conclusion

Following these steps ensures the successful renaming of the SaleBot Chat app for Android in an existing Flutter project. 🎉

FacultyLMS