Changing the package name is very easy. We already posted a manual method for changing the package name. In this post, we discuss an easy and fast method for changing a package name in a flutter.
Adding package
Open the pubspec.yaml file and add the change_app_package_name: ^1.0.0 under dev dependency secion.
dev_dependencies:
change_app_package_name: ^1.0.0
flutter_test:
sdk: flutter
Flutter Changing package name
Then open the integrated terminal and run the following command.
flutter pub run change_app_package_name:main com.new.package.name
Replace com.new.package.name with your package name.