![]() ![]() Listed a couple common issues with solutions for them Generated icon color is different from the original iconĬaused by an update to the image dependency which is used by Flutter Launcher Icons. The configuration file format is the same.Īn example project with flavor support enabled has been added to the examples. The config file is called flutter_launcher_icons-.yaml by replacing by the name of your desired flavor. "assets/images/christmas-background.png") which willīe used to fill out the background of the adaptive icon.Īdaptive_icon_foreground: The image asset which will be used for the icon foreground of the adaptive iconĬreate a Flutter Launcher Icons configuration file for your flavor. The next two attributes are only used when generating Android launcher iconĪdaptive_icon_background: The color (E.g. Note: iOS icons should fill the entire image and not contain transparent borders. 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. ![]() 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_maker: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_maker: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 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. 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. Add merge pull request of generate windows, macos and web icons.Ī command-line tool which simplifies the task of updating your Flutter app's launcher icon. ![]()
0 Comments
Leave a Reply. |