From 43dbe045f8c79c5468b98fd52971afa74a01748b Mon Sep 17 00:00:00 2001 From: adnan Date: Fri, 2 Sep 2022 12:13:36 +0300 Subject: [PATCH] fix the icons 50 and 57 in contents.json the 50x50 icons are actually meant for ipad, but in our ios.dart they are marked as iphone. while the 57x57 should be 1x and 2x, while in our ios.dart we're using 1x and 3x --- lib/ios.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/ios.dart b/lib/ios.dart index 11fe8e4dad..c9fc8e38f3 100644 --- a/lib/ios.dart +++ b/lib/ios.dart @@ -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; @@ -262,13 +263,13 @@ List> createImageList(String fileNamePrefix) { .toJson(), ContentsImageObject( size: '50x50', - idiom: 'iphone', + idiom: 'ipad', filename: '$fileNamePrefix-50x50@1x.png', scale: '1x') .toJson(), ContentsImageObject( size: '50x50', - idiom: 'iphone', + idiom: 'ipad', filename: '$fileNamePrefix-50x50@2x.png', scale: '2x') .toJson(), @@ -281,7 +282,7 @@ List> createImageList(String fileNamePrefix) { ContentsImageObject( size: '57x57', idiom: 'iphone', - filename: '$fileNamePrefix-57x57@3x.png', + filename: '$fileNamePrefix-57x57@2x.png', scale: '2x') .toJson(), ContentsImageObject(