Create a project with Custom Package Name in Flutter

Mar 24, 2021 . 1 min Muhammed Mukhthar CM Cover Image

Many times, I have been annoyed by the package name of my project. It always looked something like com.example.test_project I had to manually change it to my own package name.

After Hunting for few hours, One day I found how to do it the right way. All I had to do was to pass my intended organization name to the flutter create command.

For example, try running the below command in terminal

flutter create --org com.myname my_app_name

This will create a project with package name com.myname.my_app_name

Yeah! it’s that simple!

Let me know your suggestions and opinions in Twitter or drop a mail a [email protected].

Finally, if you found this helpful, please share this within your reach so that more people can benefit from this. And Follow me on Twitter for getting more posts like these 😉.