Skip to content
pubscout

flutter_app_icons

0.1.1, released 2 years ago by an unverified publisher

Change your web favicon and Android application icon programmatically at runtime.

WASM-ready
$ flutter pub add flutter_app_icons
Source repository

What it does

Provides a way to dynamically change the website favicon or Android application icon via plugin methods. It allows toggling between predefined activity aliases on Android and updating favicon elements on the web.

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

Use it when

  • You need to change the app icon dynamically based on user preferences or app state on Android.
  • You want to programmatically change the website favicon in a Flutter web application.

Skip it when

  • You just want to set a static launcher icon once at build time.
  • You need iOS support for dynamic app icons (not currently documented as supported).

Strengths

  • Supports both Android runtime icon switching and web favicon updates.
  • Migrated to package:web to compile to WASM.

Weaknesses

  • Requires manual and complex configuration of activity aliases in AndroidManifest.xml.
  • Android implementation requires specific IDE and main activity adjustments.

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
2

Requires AndroidManifest.xml modifications, setting up activity-aliases, and specific Android activity configuration.

final _flutterAppIconsPlugin = FlutterAppIcons();
_flutterAppIconsPlugin.setIcon(icon: 'favicon.png');

Alternatives

Packages that do the same job and could replace flutter_app_icons.

  • flutter_launcher_icons

    Use flutter_launcher_icons if you want to statically generate and configure your app icons for various platforms at build time rather than changing them dynamically at runtime.

Works with

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