Add ducky icon for Android

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ashilkn
2025-08-27 17:01:09 +05:30
parent 55090436ce
commit a7805784b7
10 changed files with 38 additions and 8 deletions

View File

@@ -135,6 +135,17 @@
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity-alias>
<activity-alias
android:name="${applicationId}.IconDuckyHuggingE"
android:icon="@mipmap/icon_ducky_hugging_e"
android:enabled="false"
android:exported="true"
android:targetActivity=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity-alias>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_ducky_hugging_e_launcher_foreground"/>
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

View File

@@ -13,7 +13,8 @@ enum AppIcon {
iconGreen("Default", "IconGreen", "assets/launcher_icon/icon-green.png"),
iconLight("Light", "IconLight", "assets/launcher_icon/icon-light.png"),
iconDark("Dark", "IconDark", "assets/launcher_icon/icon-dark.png"),
iconOG("OG", "IconOG", "assets/launcher_icon/icon-og.png");
iconOG("OG", "IconOG", "assets/launcher_icon/icon-og.png"),
iconDuckyHuggingE("Ducky", "IconDuckyHuggingE", "assets/launcher_icon/icon-ducky-hugging-e-foreground.png");
final String name;
final String id;
@@ -175,13 +176,26 @@ class _AppIconTile extends StatelessWidget {
cornerRadius: 12,
cornerSmoothing: 1,
),
child: Image(
width: 60,
height: 60,
image: AssetImage(
appIcon.path,
),
),
child: appIcon == AppIcon.iconDuckyHuggingE
? Container(
width: 60,
height: 60,
color: const Color(0xFF08C225),
child: Image(
width: 60,
height: 60,
image: AssetImage(
appIcon.path,
),
),
)
: Image(
width: 60,
height: 60,
image: AssetImage(
appIcon.path,
),
),
),
const SizedBox(width: 12),
AnimatedSwitcher(