Skip to content

Commit 037c8bd

Browse files
authored
Merge pull request #21 from Npepperlinux/feat/flutter_launcher_icons
Fix(Android): Remove blank space from around app icon
2 parents 552a976 + 1068dc0 commit 037c8bd

8 files changed

Lines changed: 15 additions & 0 deletions

File tree

8.88 KB
Loading
4.77 KB
Loading
13.4 KB
Loading
23.9 KB
Loading
35.2 KB
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/ic_launcher_background"/>
4+
<foreground>
5+
<inset
6+
android:drawable="@drawable/ic_launcher_foreground"
7+
android:inset="16%" />
8+
</foreground>
9+
</adaptive-icon>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="ic_launcher_background">#E9AFC6</color>
4+
</resources>

pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ flutter_launcher_icons:
151151
linux: true
152152
image_path: "assets/favicon.png"
153153
min_sdk_android: 21 # android min sdk min:16, default 21
154+
adaptive_icon_background: "#E9AFC6"
155+
adaptive_icon_foreground: "assets/favicon.png"
154156
# web:
155157
# generate: true
156158
# image_path: "assets/favicon.ico"

0 commit comments

Comments
 (0)