Change App Name & ID

Change App Name

ANDROID

  • Open a file /android/app/src/main/AndroidManifast.xml and change the application label.

<application
    	android:name="io.flutter.app.FlutterApplication"
    	android:label="Replace with your App name"
    	android:icon="@mipmap/ic_launcher"
    	android:usesCleartextTraffic="true">

iOS

  • Open a file /ios/Runner/Info.plist and change the string of CFBundleName.

<key>CFBundleName</key>
<string>Replace with your App name</string>

Change Package Name

ANDROID

  • Open /android/app/build/gradle and change the applicationId value.

defaultConfig {
	applicationId "Replace with your package name"
	minSdkVersion 18
	targetSdkVersion 29
	versionCode flutterVersionCode.toInteger()
	versionName flutterVersionName
	multiDexEnabled true
}
  • Open /android/app/src/main/AndroidManifest.xml, /android/app/src/profile/AndroidManifest.xml, /android/app/src/debug/AndroidManifest.xml and change the package name.

 <manifest 
  xmlns:android="http://schemas.android.com/apk/res/android"
	package="Replace with your package name">

Rename Kotlin folder(Android)

  • Open /android/app/src/main/kotlin folder

  • Rename the subfolders to match your package name.

  • In the MainActivity.kt file, please update the package id.

IOS

  • Open the ios project on Xcode and you can change the package name on the General tab.

Using Command (Very Easy)

NOTE: Please make a copy of the project before following the instructions below. Just incase the commands doesn't work as intended.

To change the name and application id of the app, follow the steps below for Android & iOS.

  • Go to flutter_application_id.yaml

  • Find this code:

flutter_application_id:
  android: 
    id: "online.edentech.pos"
    name: "Glover Pos"
  ios:
    id: "online.edentech.pos"
    name: "Glover Pos"
  • Change the name and id to that of your choice.

  • Then run this command in your terminal to change the app name and id.

flutter pub get
flutter pub run flutter_application_id:main

Last updated