applyAndroidSplashImage function

Future<void> applyAndroidSplashImage({
  1. String? imageSource,
  2. String? color,
  3. String? gravity,
  4. YamlMap? android12AndAbove,
})

Apply the splash images to Android

Implementation

Future<void> applyAndroidSplashImage({
  String? imageSource,
  String? color,
  String? gravity,
  YamlMap? android12AndAbove,
}) async {
  await generateAndroidImages(
    imageSource: imageSource,
  );
  await generateImageForAndroid12AndAbove(
    android12AndAbove: android12AndAbove,
  );
  await createColors(
    color: color,
  );
  await createSplashImageDrawable(
    imageSource: imageSource,
    color: color,
    gravity: gravity,
  );
  await updateStylesXml(
    android12AndAbove: android12AndAbove,
    color: color,
  );
}