fluttercommunity / fluttercommunity/flutter_launcher_icons

Blank Launcher Icon Issue When Using Flavors with flutter_launcher_icons (v^0.14.2)

Open
#627 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Dart
Stars
2.1k
Forks
426
PR merge metrics
No merged PRs in 30d

Description

### :information_source: Info

**- Flutter Launcher Icons Version:**`^0.14.2`
**- Flutter Version:**

```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on Ubuntu 20.04.3 LTS (fossa-kingdra-adl
X127) 5.13.0-1022-oem, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2023.3)
[✓] Android Studio (version 2024.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.3)
[✓] VS Code (version 1.96.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

```

**- Operating System:** Android 12.0 (S) - API 31
**- Device:** Pixel 8 Emulator API 31

### :speech_balloon: Description
I am using flavors in my project, and the launcher icon appears blank when building the app. The build process completes successfully without errors, but the icon is not displayed correctly on the device/emulator.

This issue persists across all flavors. Each flavor has its own `image_path` configuration in the `pubspec.yaml`.

### :scroll: Pubspec.yaml
```yaml
dev_dependencies:
flutter_launcher_icons: ^0.14.2
```

```yaml
flutter_launcher_icons:
android: true
ios: true
remove_alpha_ios: true
image_path: "assets/images/app_icon.png"
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the flavor-specific flutter_launcher_icons configuration in pubspec.yaml and reproduce the blank icon on Flutter 3.27.1 with Android API 31. Check whether each flavor's image_path is processed into the expected launcher assets; done means every flavor displays its configured icon on the emulator.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.