change_app_package_name 0.1.2

  • Readme
  • Changelog
  • Installing
  • 77

Change App Package Name for Flutter #

Change App Package Name with single command. It makes the process very easy and fast.

What It does? #

  • [x] Update AndroidManifest.xml files for release, debug & profile
  • [x] Update build.gradle file
  • [x] Update MainActivity file. Both java & kotlin supported.
  • [x] Move MainActivity file to new package directory structure
  • [x] Delete old package name directory structure.

How to Use? #

Add Change App Package Name to your pubspec.yaml in dev_dependencies: section

  change_app_package_name: ^0.1.2

Update dependencies

flutter pub get

Run this command to change the package name.

flutter pub run change_app_package_name:main

Where is the new package name that you want for your app. replace it with any name you want.

Meta #

Atiq Samtia– @AtiqSamtia –

Distributed under the MIT license.

Contributing #

  1. Fork it (
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

[0.1.0] - (March 16, 2020) #

  • Change Android Package Name with single command

[0.1.1] - (March 16, 2020) #

  • Update code as per guidelines

[0.1.2] - (March 16, 2020) #

  • Bug Fix in

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  change_app_package_name: ^0.1.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:change_app_package_name/change_app_package_name.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on May 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.1
  • pana: 0.13.8-dev

Health issues and suggestions

Document public APIs. (-1 points)

22 out of 22 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Format lib/android_rename_steps.dart.

Run dartfmt to format lib/android_rename_steps.dart.

Format lib/file_utils.dart.

Run dartfmt to format lib/file_utils.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and change_app_package_name.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0