How to change package name or app name in Flutter.

First, to change the app name, we have to simply go to AndroidManifest.xml file in the android folder and look for the android:label="<app name>" property and change the name as per requirement.

To change the package name, go to the app level Build.gradle and we will find code something like this:-

defaultConfig {
        applicationId "com.example.yourPackageName"
        minSdkVersion 16
        targetSdkVersion 28
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName

we can now change the name of our package by changing the value of applicationId.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.