flutter_launcher_icons
flutter_launcher_icons copied to clipboard
Add a warning, if a user trys to add a icon with alpha channel as ios icon. Because this is not allowed by Appstore
最好能自动去掉alpha通道
Quick workaround: https://stackoverflow.com/a/26177376
I'd like to see not only a warning but also the tool to automatically remove the alpha channel because Apple will reject any app submission with "invalid" icons.
Actually, it should be an easy fix. Instead of using encodePng
it seems to be possible to use a PngEncoder()
instance and set the channels
property to rgb
instead of rgba
.
A +1 on @sma 's suggestion. Google Play requires a 32-bit PNG (with transparency), while the App Store specifically disallows an alpha channel.
I would be great if the tool could account for this and strip the alpha from the iOS icons.
@zmeggyesi you can use the params to resolve the alpha problem:
pubspec.yaml
flutter_icons:
# image_path: "assets/images/favicon.png"
image_path_android: "assets/images/favicon.png"
image_path_ios: "assets/images/favicon_ios.png"
@douglasrosa0110 Yes, but that's beside the point. I don't want to have to deal with this at all if a simple way exists for the program to handle it - that's what it was made to do, to handle things for me, so I don't have to.
@MarkOSullivan94, this issue has been resolved. Can you close it?