How to Change the Name of Your Flutter Application
Changing the name of your Flutter application is an essential step in launching or rebranding your application. When making this modification, it is important to ensure consistency across all platforms. In this post, we will go through the process of changing the name of your Flutter application, covering Android, iOS, and the web.
Step 1: Update pubspec.yaml
- Open the
pubspec.yaml
file in your Flutter project. - Locate the
name
field and update it with the new desired name.
The name should be all lowercase, with underscores to separate words,just_like_this
. Use only basic Latin letters and Arabic digits:[a-z0-9_]
. Also, make sure the name is a valid Dart identifier—that it does not start with digits and is not a reserved word.

Step 2: Modify the Dart Code
- Open the main file (usually
main.dart
) in thelib
directory. - Update the
MaterialApp
title property with the new name, this name is going to be displayed so you do not have to follow any conventions.
The title is typically displayed in the title bar of the app window or as the app name in the app switcher or task manager of the operating system. On the web, it is used as the page title, which shows up in the browser's list of open tabs.

Step 3: Update Android-specific Changes
- Open the
AndroidManifest.xml
file in theandroid/app/src/main/
directory. - Update the
android:label
attribute in the<application>
tag to reflect the new name.

Step 4: Adjust iOS-specific Changes
- Open the
Info.plist
file in theios/Runner/
directory. - Update the values of the
<key>CFBundleName</key>
and<key>CFBundleDisplayName</key>
keys to the new name.

Step 5: Update Web-specific Changes
- Open the
index.html
file in theweb/
directory. - Update the content of the
<title>
tag to the new name.

Step 6: Consider Additional Updates
- Review other project files (e.g., README, documentation) and update any references to the old name.
- Update the launcher icon if needed, check out my post if you need help:

Conclusion
By following these steps, you can successfully change the name of your Flutter application across various platforms, including Android, iOS, and the web. Make sure to update the pubspec.yaml
file, modify your Dart code and make platform-specific changes. This will make sure that the new name is consistent across your application.