createAndroidAdaptiveIcon function
void
createAndroidAdaptiveIcon({})
Start android adaptive icons
Implementation
void createAndroidAdaptiveIcon({
required String background,
required String foreground,
String? round,
String? monochrome,
}) {
var message = 'Creating Android adaptive icons...';
if (round != null) {
message = 'Creating Android adaptive icons with round...';
}
CliLogger.info(message);
_createAdaptiveForeground(adaptiveIcons, foreground);
_createAdaptiveBackground(adaptiveIcons, background, monochrome);
if (round != null) {
_createAdaptiveRound(
androidIcons, round, isValidHexaCode(background), monochrome != null);
} else {
_removeAdaptiveRound(androidIcons);
}
if (monochrome != null) {
_createAdaptiveMonochrome(adaptiveIcons, monochrome);
} else {
_removeAdaptiveMonochrome(adaptiveIcons);
}
}