Change App Package Name with single command. It makes the process very easy and fast.
Add Change App Package Name to your pubspec.yaml
in dev_dependencies:
section.
dev_dependencies:
change_app_package_name: ^1.4.0
or run this command
flutter pub add -d change_app_package_name
Not migrated to null safety yet? use old version like this
dev_dependencies:
change_app_package_name: ^1.4.0
Update dependencies
flutter pub get
Run this command to change the package name for both platforms.
dart run change_app_package_name:main com.new.package.name
To rename only Android:
dart run change_app_package_name:main com.new.package.name --android
To rename only IOS:
dart run change_app_package_name:main com.new.package.name --ios
Where com.new.package.name
is the new package name that you want for your app. replace it with any name you want.
Atiq Samtia– @AtiqSamtia – me@atiqsamtia.com
Distributed under the MIT license.
https://github.com/atiqsamtia/change_app_package_name
git checkout -b feature/fooBar
)git commit -am 'Add some fooBar'
)git push origin feature/fooBar
)