Skip to main content

Icons Setup

flutter_launcher_icons​

For changing Launcher icon we use a command-line tool to help with thats Until not have to edit any internal files in the android directory, you simply Have to provide icon.png file to the folder with 512*512 dimensions and the tool Will take care of the rest.

Steps​

1- Go to this path music_offline_template/assets/res/icon

icon


2- Add your icon here need to have this filename icon.png and the dimensions mentioned above.

3- And run this command in your terminal :

flutter pub run flutter_launcher_icons:main

flutter_native_splash​

For changing the splash screen we same as before command-line tool to thats And config file to configure it, this easy to set up without doing any complicated Configurations simply add the png file to the folder with the exact name as showing in The image, and for the color open this file flutter_native_splash.yaml and set the color you want in the color section and save it.

Steps​

1- Go to this path music_offline_template/assets/res/splash

splash


2- Add your Splash image to tge path mentioned above , need to have this filename splash.png and the dimensions of 512*512.

3- After you change your icon adjust the background color of the splash screen in this section in pubspec.yaml and save it keep in mind thats the color format is hex color so any hex color should work.

splashcolor


4- And run this command in your terminal :

flutter pub pub run flutter_native_splash:create

If you have this problem !!!​

problem

go to your pubspec.yaml file​

For ANDROID STUSIO run FLutter Packages Get like this.

android

For VSCode Press Ctrl+S in pubspec.yaml file.

And repeat this command for both android/vsCode in the terminal :

flutter pub pub run flutter_native_splash:create