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
.