close

How to Change the App DisplayName in Flutter Application?

Hello Guys How are you all ? Today in this tutorial we are we will understand How to Change App DisplayName in Flutter? Maytime’s we need to change our app display name in flutter.

Here we will talk about two method to change displayname in flutter application
1. Manually
2. Using Plugin

How to Change the App DisplayName in Flutter Application manually?

  1. How to Change the App DisplayName in Flutter Application manually?

    to Change the App DisplayName in Flutter Application manually For android, we need to change android:label in the AndroidManifest.xml file. First of all open this directory Yor_project/android/app/src/main and open AndroidManifest.xml file. let the android label refer to the name you prefer for eg.

  2. How to change the App DisplayName in Flutter iOS ?

    to change the App DisplayName in Flutter iOS Open info.plist located at Your_project/ios/Runner and change CFBundleName value in flutter.

First of all we will use manually method to change displayname in flutter.

How to change the App DisplayName in Flutter Android ?

For android, we need to change android:label in the AndroidManifest.xml file. First of all open this directory Yor_project/android/app/src/main and open AndroidManifest.xml file. let the android label refer to the name you prefer for eg.

<application
    android:label="New Name for your app" ...>
</application>

Don’t forget to run

flutter clean

That’s it for android now just re-run your app and name will be changed.

How to change the App DisplayName in Flutter iOS ?

Open info.plist located at Your_project/ios/Runner

<key>CFBundleName</key>
<string>Your new App Name</string> //

Don’t forget to run

flutter clean

How to Change the App DisplayName in Flutter Application Using Plugin ?

First of all add flutter_launcher_name as dependencies in pubspec.yaml file.

dev_dependencies: 
  flutter_launcher_name: "^0.0.1"
  
flutter_launcher_name:
  name: "yourNewAppLauncherName"

and run

flutter pub get
flutter pub run flutter_launcher_name:main

This plugin will do same as we done manually.

Summery

So, It’s All About How to Change the App DisplayName in Flutter Application?. I hope this tutorial helps you to solve your error. Please Comment Below if You stucks anywhere with my code.

Also Check Out Below Tutorials

Leave a Comment

%d bloggers like this: