app_launcher_icon_widget 1.0.1 copy "app_launcher_icon_widget: ^1.0.1" to clipboard
app_launcher_icon_widget: ^1.0.1 copied to clipboard

Flutter plugin providing a widget and data for displaying the app launcher icon.

App Launcher Icon Widget #

A Flutter plugin to display or retrieve the app's launcher icon on Android and iOS, perfect for splash screens or custom UI.

Installation #

Check here

Usage #

Display the Icon #

Use the AppLauncherIcon widget to show the app's icon:

import 'package:app_launcher_icon_widget/app_launcher_icon_widget.dart';

AppLauncherIcon(
  width: 64, // Optional, defaults to 48
  height: 64, // Optional, defaults to 48
  placeholder: Icon(Icons.image), // Optional widget to show if icon cannot be loaded
)

Retrieve the Icon #

Get the icon as a Uint8List for custom use:

import 'package:app_launcher_icon_widget/app_launcher_icon_widget.dart';

Uint8List? appIcon = await AppLauncherIconWidget.getAppLauncherIcon();

Notes #

  • Ensure icons are configured in android/app/src/main/res (Android) and Assets.xcassets (iOS).
  • Supports adaptive icons on Android 8.0+.
  • Check pub.dev for updates.
2
likes
160
points
136
downloads

Publisher

verified publishersharmadhiraj.com

Weekly Downloads

Flutter plugin providing a widget and data for displaying the app launcher icon.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on app_launcher_icon_widget

Packages that implement app_launcher_icon_widget