Skip to content

Instantly share code, notes, and snippets.

@vijayinyoutube
Created September 27, 2022 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijayinyoutube/809d17821d907913515f33583b16f8fa to your computer and use it in GitHub Desktop.
Save vijayinyoutube/809d17821d907913515f33583b16f8fa to your computer and use it in GitHub Desktop.
changeAppIcon() async {
try {
if (await FlutterDynamicIcon.supportsAlternateIcons) {
await FlutterDynamicIcon.setAlternateIconName(iconName[iconIndex]);
debugPrint("App icon change successful");
return;
}
} catch (e) {
debugPrint("Exception: ${e.toString()}");
}
debugPrint("Failed to change app icon ");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment