Skip to content

Commit

Permalink
Merge pull request fluttercommunity#412 from adnanjpg/fix-ios-icon-sizes
Browse files Browse the repository at this point in the history
fix the icons 50 and 57 in contents.json
  • Loading branch information
RatakondalaArun authored Sep 3, 2022
2 parents b55dd30 + 43dbe04 commit 07a4bea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ void createIcons(FlutterLauncherIconsConfig config, String? flavor) {
image.channels = Channels.rgb;
}
if (image.channels == Channels.rgba) {
print('\nWARNING: Icons with alpha channel are not allowed in the Apple App Store.\nSet "remove_alpha_ios: true" to remove it.\n');
print(
'\nWARNING: Icons with alpha channel are not allowed in the Apple App Store.\nSet "remove_alpha_ios: true" to remove it.\n');
}
String iconName;
final dynamic iosConfig = config.ios;
Expand Down Expand Up @@ -262,13 +263,13 @@ List<Map<String, String>> createImageList(String fileNamePrefix) {
.toJson(),
ContentsImageObject(
size: '50x50',
idiom: 'iphone',
idiom: 'ipad',
filename: '$fileNamePrefix[email protected]',
scale: '1x')
.toJson(),
ContentsImageObject(
size: '50x50',
idiom: 'iphone',
idiom: 'ipad',
filename: '$fileNamePrefix[email protected]',
scale: '2x')
.toJson(),
Expand All @@ -281,7 +282,7 @@ List<Map<String, String>> createImageList(String fileNamePrefix) {
ContentsImageObject(
size: '57x57',
idiom: 'iphone',
filename: '$fileNamePrefix-57x57@3x.png',
filename: '$fileNamePrefix-57x57@2x.png',
scale: '2x')
.toJson(),
ContentsImageObject(
Expand Down

0 comments on commit 07a4bea

Please sign in to comment.