forked from fluttercommunity/flutter_launcher_icons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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<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(), | ||
|
@@ -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( | ||
|