1. Home
  2. Docs
  3. Threme Setup
  4. App icon change

App icon change

Tired of manually updating your app’s launcher icon for different platforms? Look no further! The flutter_launcher_icons package makes it a breeze.

How it Works:Configure: Add to your project: Include the package in your pubspec.yaml file:

dev_dependencies:
flutter_launcher_icons: ^0.13.1

Use code with caution.

Create a config file: Specify your icon settings in a file named flutter_launcher_icons.yaml. Here’s a basic example:

flutter_launcher_icons:
android: true
ios: true
image_path: "assets/icon/icon.png"

Use code with caution.

Run the package: Fetch dependencies: Run flutter pub get.
Generate icons: Execute flutter pub run flutter_launcher_icons.

Customization Options:

Platforms: Choose which platforms (Android, iOS, web, Windows, macOS) to update.
Icon paths: Specify different icon paths for each platform.
Adaptive icons: Create adaptive icons for Android.
Web configs: Set background and theme colors for web icons.
Windows/macOS: Customize icon size and other settings.

Key Points:

Flexible: Tailor the package to your specific needs.
Easy to use: Simple configuration and commands.
Efficient: Automatically generates icons for multiple platforms.

Need more help? Check out the official documentation and example projects for detailed guidance.