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
1 Answer
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 setBundleId --value com.onatcipli.networkUpp
flutter pub global run rename setAppName --value "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.
8 Comments
flutter pub global run rename setAppName --value [your app name] and flutter pub global run rename setBundleId --value com.example.appname