Skip to content

Commit

Permalink
Fix remove alpha for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-500 authored and MarkOSullivan94 committed Apr 7, 2023
1 parent 323cbff commit e57229d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ void createIcons(FlutterLauncherIconsConfig config, String? flavor) {
}
// decodeImageFile shows error message if null
// so can return here if image is null
final Image? image = decodeImage(File(filePath).readAsBytesSync());
Image? image = decodeImage(File(filePath).readAsBytesSync());
if (image == null) {
return;
}
if (config.removeAlphaIOS) {
image.remapChannels(ChannelOrder.rgb);
if (config.removeAlphaIOS && image.hasAlpha) {
image = image.convert(numChannels: 3);
}
if (image.hasAlpha) {
print(
Expand Down

0 comments on commit e57229d

Please sign in to comment.