Package name use to identify the application uniquely on devices and play store and app store.
Changing the package name need to be done in separately for android and iOS.
Change the package name in android app
First, go to the android folder > app > and open the build.gradle in the app folder. In there you have to change the applicationId inside the defaultConfig block.
defaultConfig {
applicationId "com.mightytechno.mightytechno"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Change bundle indentifier in iOS app
In iOS, it uses a bundle identifier to uniquely identify the apps. You can change it in the following way.
Open ios folder > runner and click and open Info.plist. Now change the value under the CFBundleIdentifier key.
<key>CFBundleIdentifier</key>
<string>com.mightytechno.mightytechno</string>
Now stop the running app and start the app again. Now you can see the app contains a new package name.