Skip to content

Conversation

@MitchellGoodwin
Copy link
Contributor

@MitchellGoodwin MitchellGoodwin commented Jan 10, 2024

Fixes #139434.

Changes the font from "Text" to "Display". We should only be using the "Display" font for fonts of size 20 and above. Previously "Display" was not showing correctly so this font being wrong was flying under the radar.

Before:
Screenshot 2024-01-10 at 10 49 26 AM

After:
Screenshot 2024-01-10 at 10 52 11 AM

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
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: cupertino flutter/packages/flutter/cupertino repository labels Jan 10, 2024
@MitchellGoodwin MitchellGoodwin force-pushed the cupertino-dialog-font branch 2 times, most recently from 033552e to 780dac3 Compare January 12, 2024 19:27
@MitchellGoodwin
Copy link
Contributor Author

This code is covered by a golden test. The golden test isn't failing because it's fuzzy matching to the image from before #137275.

@Hixie
Copy link
Contributor

Hixie commented Jan 17, 2024

Shouldn't we be marking old tests as wrong once we decide we're changing the behaviour? cc @Piinks

@MitchellGoodwin
Copy link
Contributor Author

Shouldn't we be marking old tests as wrong once we decide we're changing the behaviour? cc @Piinks

I asked @Piinks that question and the answer was that the incorrect image will expire naturally.

@Piinks
Copy link
Contributor

Piinks commented Jan 18, 2024

Asked and answered on Discord as well: https://discord.com/channels/608014603317936148/608018585025118217/1197283919796633600

Piinks — Yesterday at 2:58 PM
IIRC, It'll still detect regressions. Gold has a short memory. Once the image changes, and it stops seeing the prior image, it forgets about it. Otherwise, you could explicitly go in and mark the prior image negative. But, I think this is similar to when we used flutter/goldens, where branches out of sync could still pass if they were generating an older image, so going in and marking it negative would break alternate branches people are working on

@flutter-dashboard
Copy link

This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@MitchellGoodwin MitchellGoodwin force-pushed the cupertino-dialog-font branch from c66ed86 to acc332c Compare May 2, 2024 16:59
@MitchellGoodwin MitchellGoodwin requested a review from Piinks May 2, 2024 18:03
Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

That test'll do! Thanks @MitchellGoodwin, LGTM

@MitchellGoodwin MitchellGoodwin added the autosubmit Merge PR when tree becomes green via auto submit App label May 7, 2024
@auto-submit auto-submit bot merged commit e67e951 into flutter:master May 7, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 8, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 8, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 8, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 8, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Letterspacing is too tight on Cupertino Dialog title

3 participants