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
Asked
Active
Viewed 36 times
1 Answers
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.
![](../../users/profiles/5423747.webp)
Arash Mohammadi
- 902
- 7
- 21
-
would be change the package name too? – Abdul Qadir Feb 01 '21 at 08:19
-
The bundleId is same as the package name. (the first line) – Arash Mohammadi Feb 01 '21 at 09:07