
Icon size should be within this constrains 48.yaml by replacing by the name of your desired flavor.

Image_path_ios: The location of the icon image file specific for iOS platform (optional - if not defined then the image_path is used) Image_path_android: The location of the icon image file specific for Android platform (optional - if not defined then the image_path is used) Image_path: The location of the icon image file which you want to use as the app launcher icon icon/path/here.png: This will generate a new launcher icons for the platform with the name you specify, without removing the old default existing Flutter launcher icon.false: Ignore making launcher icons for this platform.true: Override the default existing Flutter launcher icon for the platform specified.
Flutter app icon generator full#
Shown below is the full list of attributes which you can specify within your Flutter Launcher Icons configuration. With the icon located in the image path specified above and given the name "launcher_icon" in the Android project and "Example-Icon" in the iOS project. In the above configuration, the package is setup to replace the existing launcher icons in both the Android and iOS project If you encounter any issues please report them here. flutter pub getįlutter pub run flutter_launcher_icons:main Run the package #Īfter setting up the configuration, all that is left to do is run the package. Note: If you are not using the existing pubspec.yaml ensure that your config file is located in the same directory as it.

flutter pub getįlutter pub run flutter_launcher_icons:main -f The name of the file when running the package. If you name your configuration file something other than flutter_launcher_icons.yaml or pubspec.yaml you will need to specify Min_sdk_android: 21 # android min sdk min:16, default 21 More complex examples can be found in the example projects.

Setup the config file #Īdd your Flutter Launcher Icons configuration to your pubspec.yaml or create a new config file called flutter_launcher_icons.yaml.Īn example is shown below.
Flutter app icon generator update#
Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future. A command-line tool which simplifies the task of updating your Flutter app's launcher icon.
