Change App Package Name in Flutter with One Simple Command
Renaming a Flutter app’s package name used to be a tedious task: diving into multiple files, updating directory structures, and praying…
How to change App Package Name in Flutter with One Simple Command
Renaming a Flutter app’s package name used to be a tedious task: diving into multiple files, updating directory structures, and praying you didn’t break anything. But not anymore.
Thanks to the **change_app_package_name** You can now change your app's package name in seconds, with a single command.
Let’s walk through the magic. ✨

How to change package name in flutter?
🧠 What Does This Tool Do?
When you run it, this tool handles all the messy manual steps for you:
✅ Updates AndroidManifest.xml files (debug, release & profile)
✅ Updates build.gradle files
✅ Renames and relocates your MainActivity (Java/Kotlin supported)
✅ Cleans up the old package directory structure
✅ Keeps your project neat and error-free
How to Use It
1. Add It to pubspec.yaml (under dev_dependencies)
dev_dependencies:
change_app_package_name: ^1.0.0
Not migrated to null safety yet? Use:
dev_dependencies:
change_app_package_name: ^0.1.3
- Install the Dependency
flutter pub get
- Run the Command
flutter pub run change_app_package_name:main com.example.myawesomeapp
📦 Replace com.new.package.name with your desired package name (e.g., com.zubair.qaapp).
💥 Example
flutter pub run change_app_package_name:main com.example.myawesomeapp
📦 Where to Get It
- Pub.dev: change_app_package_name
- GitHub: https://github.com/atiqsamtia/change_app_package_name
💡 Why Use This?
- Saves time ⏳
- Avoids manual errors 🤕
- Great for rebranding or white-label apps 🔄
- Works with both Java and Kotlin 🙌
Final Thoughts
Changing your app’s package name shouldn’t feel like diffusing a bomb. change_app_package_nameIt’s a quick and painless process. Give it a try on your next project — you’ll never go back.
If you found this helpful, give the package a ⭐ on GitHub and share this with your fellow Flutter devs!
메타데이터
- post_id
- 2267e60dac1e
- slug
- change-app-package-name-in-flutter-with-one-simple-command-2267e60dac1e
- url
- https://medium.com/@zubairkhansh/change-app-package-name-in-flutter-with-one-simple-command-2267e60dac1e
- canonical_url
- https://medium.com/@zubairkhansh/change-app-package-name-in-flutter-with-one-simple-command-2267e60dac1e
- author_url
- https://medium.com/@zubairkhansh
- status
- ok
- fetched_at
- 2026-07-20 18:44:07