You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am thinking about restructuring flutter_icons_config.yaml format
current config
flutter_icons:
image_path: "assets/images/icon-128x128.png"image_path_android: "assets/images/icon-710x599-android.png"image_path_ios: "assets/images/icon-1024x1024.png"android: true # can specify file name here e.g. "ic_launcher"ios: true # can specify file name here e.g. "My-Launcher-Icon"adaptive_icon_background: "assets/images/christmas-background.png"# only available for Android 8.0 devices and aboveadaptive_icon_foreground: "assets/images/icon-foreground-432x432.png"# only available for Android 8.0 devices and above# if I add support for webweb: trueimage_path_web: "path/to/web.png"background_color_web: "#hexcolor"theme_color_web: "#hexcolor"# if we add support for linuxlinux trueimage_path_linux: "path/to/image.png"#if we add support for windowswindows: trueimage_path_windows: true# ... and so on with other platforms
My suggestion
image_path: "path/to/image.png"# fallback if not specified for platformandroid:
generate: true # specifies weather to generate icons for this platform or notimage_path: "path/to/image.png"adaptive_icon_background: "path/to/image.png"adaptive_icon_foreground: "path/to/image.png"ios:
generate: trueimage_path: "path/to/image.png"web:
generate: trueimage_path: "path/to/image.png"background_color: "#hexcode"theme_color: "#hexcode"linux:
generate: trueimage_path: "path/to/image.png"windows:
generate: trueimage_path: "path/to/image.png"macos:
generate: trueimage_path: "path/to/image.png"
What this will bring to the table?
better organized configs
easy to maintain
we can also use checked_yaml to add static support
I think this should arrive once support for all the other platforms has been added and then we update the major version for flutter_launcher_icons to indicate a breaking change in the config
Hi @'MarkOSullivan94, @'bradintheusa
I am thinking about restructuring flutter_icons_config.yaml format
current config
My suggestion
What this will bring to the table?
Let me know what you guys think
Originally posted by @RatakondalaArun in #363 (comment)
The text was updated successfully, but these errors were encountered: