Package Name Change

Update dependencies:

flutter pub get 

Run this command to change the package name for both platforms:

dart run change_app_package_name
com.new.package.name

To rename only Android:

dart run change_app_package_name
com.new.package.name --android 

To rename only iOS:

dart run change_app_package_name
com.new.package.name --ios

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

Launcher Icon Setup

Add your Flutter Launcher Icons configuration to your pubspec.yaml. An example is shown below. More complex examples can be found in the example projects.

dev_dependencies:
  flutter_launcher_icons: "^0.14.0"

flutter_launcher_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/icon/icon.png"
  min_sdk_android: 21 # android min sdk min:16, default 21
  web:
    generate: true
    image_path: "path/to/image.png"
    background_color: "#hexcode"
    theme_color: "#hexcode"
  windows:
    generate: true
    image_path: "path/to/image.png"
    icon_size: 48 # min:48, max:256, default: 48
  macos:
    generate: true
    image_path: "path/to/image.png"
  1. Run the package

After setting up the configuration, all that is left to do is run the package:

flutter pub run flutter_launcher_icons

If you name your configuration file something other than flutter_launcher_icons.yaml or pubspec.yaml you will need to specify the name of the file when running the package.

flutter pub run flutter_launcher_icons -f <your config file name here>

Note: If you are not using the existing pubspec.yaml, ensure that your config file is located in the same directory as it.

App Display Name Change

For Android

Navigate to Android > app > main > AndroidManifest.xml. Then change the name of your brand as shown in the picture below.

name change android.

For iOS

Navigate to iOS> runner> Info.plist . Change your brand name as show in picture. For example in this picture “Closer Dating App”. name change android.

Add API url in config