Flutter: Changing package name – Simple Method using package

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.

  change_app_package_name: ^1.0.0
    sdk: flutter

Flutter Changing package name

Then open the integrated terminal and run the following command.

flutter pub run change_app_package_name:main <strong>com.new.package.name</strong>
Code language: HTML, XML (xml)

Replace com.new.package.name with your package name.