Skip to content
pubscout

variable_app_icon

0.0.3, released 3 years ago by snnafi.com

Plugin to use multiple app icons on Android and iOS.

WASM-ready
$ flutter pub add variable_app_icon
Source repository

What it does

Allows Flutter applications to dynamically change their app icon on both Android and iOS devices. Developers configure icons via AndroidManifest.xml and Xcode, then invoke Dart methods to switch them at runtime.

AI-written summary of version 0.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Your app needs to let users choose a custom app icon variant.
  • You are targeting both Android and iOS platforms.

Skip it when

  • You only need static app icons configured at build time.

Strengths

  • Supports both Android (via activity-alias) and iOS.
  • Straightforward programmatic API via Dart.

Weaknesses

  • Requires manual native configuration in both AndroidManifest.xml and Xcode Build Settings.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires adding icons to Android mipmap folders and configuring activity-alias tags in AndroidManifest.xml. For iOS, requires enabling 'Include All App Icon Assets' in Xcode and listing alternate app icon sets.

VariableAppIcon.iOSDefaultAppIcon = iosAppIcons[0];
VariableAppIcon.androidAppIconIds = androidIconIds;

await VariableAppIcon.changeAppIcon(
  androidIconId: "appicon.TEAL",
  iosIcon: "AppIcon2",
);

Alternatives

Packages that do the same job and could replace variable_app_icon.

Works with

Packages commonly used together with variable_app_icon: ones it builds on, ones built on it, and its own family.