Skip to content

Commit

Permalink
Merge pull request #21 from Npepperlinux/feat/flutter_launcher_icons
Browse files Browse the repository at this point in the history
Fix(Android): Remove blank space from around app icon
  • Loading branch information
ChenDoXiu authored Dec 25, 2024
2 parents 552a976 + 1068dc0 commit 037c8bd
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?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>
<inset
android:drawable="@drawable/ic_launcher_foreground"
android:inset="16%" />
</foreground>
</adaptive-icon>
4 changes: 4 additions & 0 deletions android/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#E9AFC6</color>
</resources>
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ flutter_launcher_icons:
linux: true
image_path: "assets/favicon.png"
min_sdk_android: 21 # android min sdk min:16, default 21
adaptive_icon_background: "#E9AFC6"
adaptive_icon_foreground: "assets/favicon.png"
# web:
# generate: true
# image_path: "assets/favicon.ico"
Expand Down

0 comments on commit 037c8bd

Please sign in to comment.