0

I've a flutter project in Visual Studio Code uploaded in git too. Now I want to create a new project with different package and AppName by changing existing one. How can I do that? hope you guys understand what I am talking about. Thanks in advance

Abdul Qadir
  • 113
  • 8

1 Answers1

2

You can use rename package to rename your appname and packagename and bundle id and everything. Just install it globaly so you can use it everywhere.

flutter pub global activate rename

Then navigate to your project directory and change the bundleId (package name) and appname:

flutter pub global run rename --bundleId com.onatcipli.networkUpp
flutter pub global run rename --appname "Network Upp"

You can also make a copy of your project before doing all this, so you can have both versions.

Changing the app icon

If you want to change the app icon as well, use this method after renaming:

https://stackoverflow.com/a/52829977/5423747

What I do

Usually I have to remake same package for different organizations. I have a main project in git is stable branch, then I make new branch from stable branch and repeat the methods above.

Arash Mohammadi
  • 902
  • 7
  • 21