Skip to content

Conversation

@miguelpruivo
Copy link

Fixes #35199.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@miguelpruivo miguelpruivo force-pushed the #35199-Fix-Cupertino-NavBar-default-Close-text-shouldnt-scale-with-the-font branch from 65c7f49 to ac4b425 Compare June 27, 2019 17:52
@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@LongCatIsLooong LongCatIsLooong added a: fidelity Matching the OEM platforms better f: cupertino flutter/packages/flutter/cupertino repository labels Jun 27, 2019
@LongCatIsLooong
Copy link
Contributor

@miguelpruivo thank you for the pull request and the issue! However tests are required for a PR to be able to get merged.

After testing on an iOS 12 device, it appears to me that the system text scale settings only apply to the "content" area (i.e. what we refer to in flutter as Scaffold.body). Neither tab navigation nor top navigation is affected.

So instead of explicitly setting textScaleFactor = 1 for the close button, I'm thinking about wrapping a MediaQuery with textScaleFactor = 1 around the nav bar, or doing it in CupertinoPageScaffold so developers can override the MediaQuery for the nav bar by wrapping a different MediaQuery around their nav bar. Thoughts?

@miguelpruivo
Copy link
Author

miguelpruivo commented Aug 1, 2019

@LongCatIsLooong I was so focused on fixing the Cancel button that didn’t thought on preventing the app bar scaling by default, which completely makes sense.

I agree, looks like a reasonable solution. Leaving the possibility to override the text scale for users that want to implement that, but, by default, staying at 1.0 according to iOS HIG. 👍🏻

@LongCatIsLooong
Copy link
Contributor

@miguelpruivo would you mind reviewing #38593?

@miguelpruivo
Copy link
Author

@LongCatIsLooong done. Thank you for “fixing” it. 🙂

@LongCatIsLooong
Copy link
Contributor

@miguelpruivo closing. Thanks for contributing!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a: fidelity Matching the OEM platforms better f: cupertino flutter/packages/flutter/cupertino repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cupertino NavBar default Close text shouldn't scale with the font

3 participants