rename_flutter_project
A Dart CLI tool that helps you rename a Flutter project by updating the project name in:
- The
pubspec.yaml - All
package:import statements
This tool simplifies the process of renaming your Flutter app, ensuring that references across your codebase are updated consistently.
🚀 Installation
To use the rename_flutter_project CLI tool, you need to activate it globally using pub.
Run the following command in your terminal:
dart pub global activate rename_flutter_project
dart pub global run rename_flutter_project
flutter clean
flutter pub get
✅ Example Output
? Enter new project name: my_new_app
? Rename confirmed? (y/n): y
🔄 Renaming project folder...
✍️ Updating pubspec.yaml...
🔁 Replacing all import paths...
🚀 Running `flutter pub get`...
✅ Project renamed successfully!