Skip to content

Conversation

@RockerFlower
Copy link
Contributor

@RockerFlower RockerFlower commented Jun 16, 2022

Scale down [email protected] to different sizes and replace the original icon with rounded corners.

fix #106110

iOS_icon_1
This is how the application icons are displayed in the settings list, obviously with black gaps in the four corners. This is because the mask Apple uses is not the standard rounded corners, but continuous corner.

iOS_icon_2

This is a slow motion video of the app when it is opened from the home screen. The black color in the transition animation is caused by the transparent part of the icon.

This animation takes the colors of the left, bottom and right sides of the icon and then spreads the colors in all three directions, but the current icon has rounded corners, so some of the colors are missing.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jun 16, 2022
@timsneath
Copy link
Contributor

@RockerFlower
Copy link
Contributor Author

Excited about this PR!

Did you see https://github.com/flutter/flutter/wiki/Managing-template-image-assets?

Yes, I've seen it. I thought Android and iOS were different from other platforms. 😂 I'll try to modify.

@stuartmorgan-g
Copy link
Contributor

Currently they are different only because the current icons predate the new out-of-repo system.

@RockerFlower
Copy link
Contributor Author

@timsneath I have created a new PR flutter/packages#2266

@christopherfujino
Copy link
Contributor

christopherfujino commented Jun 30, 2022

From tools triage meeting: this PR is pending flutter/packages#2266 landing

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test case I was mentioned in flutter/packages#2266 (review) would be something like:

<String>[
'analysis_options.yaml',
'android/app/src/main/java/com/example/flutter_project/MainActivity.java',
'android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java',
'flutter_project.iml',
'ios/Flutter/AppFrameworkInfo.plist',
'ios/Runner/AppDelegate.m',
'ios/Runner/GeneratedPluginRegistrant.h',
'lib/main.dart',
],

 <String>[ 
   'analysis_options.yaml', 
   'android/app/src/main/java/com/example/flutter_project/MainActivity.java', 
   'android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java', 
   'flutter_project.iml', 
   'ios/Flutter/AppFrameworkInfo.plist', 
   'ios/Runner/AppDelegate.m', 
   'ios/Runner/GeneratedPluginRegistrant.h', 
+  'ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]',
   'lib/main.dart', 
 ], 

That test creates a flutter app, and validates those files exist in the newly created app. So validate that at least one of your templated icons gets downloaded and put in the right spot.

@jmagman
Copy link
Member

jmagman commented Jul 8, 2022

And flutter/packages#2266 is now published. Probably easiest to rebase/merged your branch to top of tree to kick all those tests again.

@RockerFlower
Copy link
Contributor Author

The test case I was mentioned in flutter/packages#2266 (review) would be something like:

<String>[
'analysis_options.yaml',
'android/app/src/main/java/com/example/flutter_project/MainActivity.java',
'android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java',
'flutter_project.iml',
'ios/Flutter/AppFrameworkInfo.plist',
'ios/Runner/AppDelegate.m',
'ios/Runner/GeneratedPluginRegistrant.h',
'lib/main.dart',
],

 <String>[ 
   'analysis_options.yaml', 
   'android/app/src/main/java/com/example/flutter_project/MainActivity.java', 
   'android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java', 
   'flutter_project.iml', 
   'ios/Flutter/AppFrameworkInfo.plist', 
   'ios/Runner/AppDelegate.m', 
   'ios/Runner/GeneratedPluginRegistrant.h', 
+  'ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]',
   'lib/main.dart', 
 ], 

That test creates a flutter app, and validates those files exist in the newly created app. So validate that at least one of your templated icons gets downloaded and put in the right spot.

I apologize for only seeing it now. Do I need to submit a pull request to flutter/packages for this test?

@stuartmorgan-g
Copy link
Contributor

That test is part of this repository, so should be in this PR.

@jmagman
Copy link
Member

jmagman commented Jul 18, 2022

@RockerFlower are you ready to fix this up and merge? This is blocking any further updates to flutter_template_images.

@jmagman
Copy link
Member

jmagman commented Jul 18, 2022

@RockerFlower are you ready to fix this up and merge? This is blocking any further updates to flutter_template_images.

Apologies, I didn't notice you had just commented on this PR! Coincidently I thought "hm wonder if that merged" and opened this up, before I read my GitHub notifications. 🤦‍♀️

Updates the AppIcon and LaunchImage assets in the iOS app template to meet Apple's icon guidelines as of iOS. Assets were moved to the [flutter_template_images][1] package, which includes them as of version 4.2.0.

Ref: https://developer.apple.com/design/human-interface-guidelines/foundations/app-icons#specifications

Update the test on creating iOS templated icons

Validate that at least one of the iOS templated icons gets downloaded and put in the right spot.

Issue: flutter#106110

[1]: https://github.com/flutter/packages/tree/main/packages/flutter_template_images
@RockerFlower
Copy link
Contributor Author

@RockerFlower are you ready to fix this up and merge? This is blocking any further updates to flutter_template_images.

I recommitted it, but there are still some failures in the automated checks.

@jmagman
Copy link
Member

jmagman commented Jul 18, 2022

It looks unrelated to your actual changes, you're branched from e1d9adf which is pretty old, can you rebase or merge onto master top of tree? I would just do it for you on your fork if I had permission but this PR is on your main branch and I don't want to mess with that.

RockerFlower and others added 3 commits July 19, 2022 07:22
Updates the AppIcon and LaunchImage assets in the iOS app template to meet Apple's icon guidelines as of iOS. Assets were moved to the [flutter_template_images][1] package, which includes them as of version 4.2.0.

Ref: https://developer.apple.com/design/human-interface-guidelines/foundations/app-icons#specifications

Update the test on creating iOS templated icons

Validate that at least one of the iOS templated icons gets downloaded and put in the right spot.

Issue: flutter#106110

[1]: https://github.com/flutter/packages/tree/main/packages/flutter_template_images
@jmagman jmagman mentioned this pull request Jul 21, 2022
8 tasks
@RockerFlower
Copy link
Contributor Author

The relevant changes have been merged here: #107873

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The default icon for iOS does not fit Apple's HIG

5 participants