Flutter: Changing package name – Simple Method using package

1 Min Read

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 com.new.package.name

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

Share this Article
Leave a comment