Change App Launcher Icon and Name:When we build a mobile application in android or ios platforms, we have to change the default app name and launcher icon to a preferred name and icon. This will most useful when launching an app to the play store or app store. This article will focus on how to change both app name and app icon from scratch in the flutter framework.
Change the app launcher name
When changing the app launcher name, you can follow up on 2 methods and those will describe as follows.
- Using rename package
You can find more information by visiting this rename package
Using rename package, you have to follow simple steps as below.
- Go to your terminal and use the pub global activate rename command.
pub global activate rename
Then you can see that the “rename package” is activated.
2. Use command pub global run rename --appname “yourappname”
pub global run rename --appname "Network Upp"
You can see that the app name has been successfully changed into the preferred name
We finished the app launcher name change, and next, we will focus on how to change the app launcher icon in the flutter framework.
Change the app launcher icon
It is important to mention that when changing the app launcher icon better to choose a high-resolution icon. You can generate an Android app launcher icon through an Android icon generator or you can either design a launcher icon that suits your application using another 3rd party application. Then follow the below steps to add your launcher icon to your app.
- Add created app launcher icon to the assets folder of your project and rename it as desired
2. Navigate to pubspec.yaml file, under dev_dependencies, add the following code snap. Click here to get more information on flutter launcher icons.
flutter_launcher_icons: "^0.13.1"
flutter_icons:
android: true
ios: true
image_path: "assets/logo/svlogo.png"
3. Save all changes that you make
4. Go to the terminal, navigates to the flutter project location, and paste and run the following commands
flutter pub clean
flutter pub get
flutter pub run flutter_launcher_icons:main
If you follow the above steps, you will end up with a successfully changed app launcher icon and name.
For more : To know about push notification in Flutter.
Leave a Reply