createAndroidIcons function

void createAndroidIcons({
  1. required String imagePath,
})

Start create Android icons

Implementation

void createAndroidIcons({required String imagePath}) {
  CliLogger.info('Creating Android icons...', emoji: '🤖');

  final image = Icon.loadFile(imagePath);
  if (image == null) {
    CliLogger.error('The file $imagePath could not be read.', level: .two);
    exit(1);
  }

  for (final template in androidIcons) {
    _saveImageAndroid(template, image, ANDROID_ICON_FILE_NAME);
  }
  CliLogger.success('Generated launcher icon images', level: .two);

  _createPlayStoreIcon(image);
  _updateAndroidManifestIconLauncher();
}