Skip to content

Commit

Permalink
REFACTOR: added proper favicon (#42)
Browse files Browse the repository at this point in the history
- updated icons_launcher package
- added custom favicon image
  • Loading branch information
OutdatedGuy authored Jul 31, 2022
1 parent 4becec7 commit 82b8594
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 14 deletions.
3 changes: 1 addition & 2 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<application
android:label="What's That Anime"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round">
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
Expand Down
Binary file removed android/app/src/main/ic_launcher-playstore.png
Binary file not shown.
Binary file added assets/icons/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 22 additions & 10 deletions icons_launcher.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
# For App Launcher icon
# flutter pub run icons_launcher:create
flutter_icons:
android: true
ios: false
web: true
windows: false
macos: false
linux: false

icons_launcher:
image_path: "assets/icons/launcher_icon_border.png"

adaptive_icon_background: "#FF673AB7"
adaptive_icon_foreground: "assets/icons/adaptive_logo.png"
platforms:
android:
enable: true
adaptive_background_color: "#673AB7"
adaptive_foreground_image: "assets/icons/adaptive_logo.png"

ios:
enable: false

web:
enable: true
favicon_path: "assets/icons/favicon.png"

macos:
enable: false

windows:
enable: false

linux:
enable: false
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ packages:
name: icons_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.1"
version: "2.0.1"
image:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ dev_dependencies:

# To change apps icon
# flutter pub run icons_launcher:create
icons_launcher: ^1.2.1
icons_launcher: ^2.0.1

# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
Expand Down
Binary file modified web/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 82b8594

Please sign in to comment.