I'm fairly new to Flutter but have found that it fits most of my design needs for iOS and Android. But, I've been unable to find a way to dynamically change the app icon.
In Swift, you were able to change the app icon from inside the actual app allowing for some pretty neat customization. A Medium article discussed this back when it first came out for iOS 10.3.
Does anybody know of any way to do this in Flutter, or will I need to make a custom package to do this?
Type “Open app” in the search bar. Tap “App” to select which icon to replace. Tap “Add to Home Screen.” You'll now see a preview of the icon (which will be a standard, uninteresting icon that Shortcuts automatically adds).
Then as per the user type, we can change the App Icon Dynamically. To create a new project in Android Studio please refer to How to Create/Start a New Project in Android Studio. Note that select Java as the programming language. Navigate to the app > res > layout > activity_main.xml and add the below code to that file.
Change Launcher icon dynamically in Android! What is it mean? Well, let’s discuss it. In the mobile application, we can say the launcher icon is the unique identification of that app. The launcher icon is self-sufficient to define the type of application. Normally a single app consists of a single launcher icon.
Step 1:- Install the application. Step 2:- Open the software, and then choose the app for which you wish to change the icons. Step 3:- Surprisingly some also allow you to rename them. Step 4:- Strategically renaming certain apps like banking and adult apps keep them hidden to a certain extent.
There might be several reasons why you would wish to change the icons on your phone’s screen. Either you are bored of looking at the same screen again and again, or else you just want to add a few advanced images on your screen. Fun backgrounds, new layouts, and a whole new variety of icons can give your phone’s screen a unique look altogether.
https://medium.com/flutter-community/programatically-change-ios-app-icon-in-flutter-c9e84bc541a2
Maybe this would help. Here's a plugin too.
https://pub.dev/packages/flutter_dynamic_icon
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With