Skip to content

Commit

Permalink
Fix android icon
Browse files Browse the repository at this point in the history
  • Loading branch information
dhzdhd committed Jan 6, 2023
1 parent 78861be commit 89e72ab
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<application
android:label="ExCode"
android:name="${applicationName}"
android:icon="@mipmap/launcher_icon">
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
Expand Down
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.
5 changes: 5 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,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_launcher_foreground"/>
</adaptive-icon>
Binary file modified assets/icons/android.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions flutter_launcher_icons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

flutter_icons:
image_path: "assets/icons/logo.png"
android: "launcher_icon"
# image_path_android: "assets/icons/logo.png"
android: true
# image_path_android: "assets/icons/android.png"
min_sdk_android: 21
adaptive_icon_background: "#ff091c32"
adaptive_icon_foreground: "assets/icons/logo.png"
adaptive_icon_foreground: "assets/icons/android.png"
adaptive_icon_padding: true
ios: true
image_path_ios: "assets/icons/logo.png"
remove_alpha_ios: true
Expand Down

0 comments on commit 89e72ab

Please sign in to comment.