Change App Icon
In this section we will see how we can change the app's launcher icon.
#
PrepareTo change the app launcher icon, you need to have an icon to replace it with.
- Dimensions:
1080*1080 px
- Format:
jpg
orpng
#
Change the default launcher iconTo change the default icon for your application, follow the steps given below:
Rename the new icon image to
app_icon
.Replace / Place the icon created with the already present in the following path:
woostore_pro / assets / images / app_icon.jpg
.Follow this step below based on the
format
of your icon image:- JPG
- Any other
No further changes required. Proceed to next step.
Open the
pubspec.yaml
file in android studio. This file is located inwoostore_pro / pubspec.yaml
.Scroll down to the section which resembles the following:
Update the
app_icon.jpg
inimage_path
with the name and format of your icon image. For example if you have apng
image then change the the above as following:Now
Save
the file by pressingcommand + s
on Mac andcontrol + s
on Windows.You will also need to update the value in
config.dart
file. It is located inwoostore_pro / lib / constants / config.dart
.Open
config.dart
file in android studio.Search for the following value:
Update the
app_icon.jpg
inappIconPath
with the name and format of your icon image. For example if you have apng
image then change the the above as following:Now
Save
the file by pressingcommand + s
on Mac andcontrol + s
on Windows.
Now follow the next step to generate the icons.
In the
terminal
run the following commands from the root folder:This will generate the launcher icons for your application for both android and iOS.
#
Change Android Notification IconFor the notification icon, the size needs to be smaller for better performance.
Recommended size for notification icon is 48*48 px
or 72*72 px
.
Add the new notification icon to woostore_pro / android / app / src / main / res / drawable / app_icon.jpg
. Replace the default icon with your new notification icon.
Usually the notification icons are png images in white color.