You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cupertino NavBar default Close text shouldn't scale with the font #35199
If you look into the native iOS NavBar texts (such as Close, Edit, and so on) those won't scale with the font settings (thus having textScaleFactor: 1.0).
Currently, the Close button from the bottom navigation route, is being able to scale and can't have its property overriden unless you explicitly create it yourself the leading widget). This will either add a lot of boilerplate if you want to provide the best native experience possible; or make the Close button smaller/bigger than the others across the system UI.
This should also be considered to the AppBar title and action buttons (both text and icon).
Solution
A simple (and correct) solution would be to set the CupertinoButton's textScaleFactor to 1.0 in the default leadingContent of the NavBar.
@miguelpruivo thank you for pointing that out! Looks like nav bars, tab bars and pickers are exempt from the regular "text size" setting or the accessibility "larger text" setting.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
LongCatIsLooong commentedon Aug 1, 2019
@miguelpruivo thank you for pointing that out! Looks like nav bars, tab bars and pickers are exempt from the regular "text size" setting or the accessibility "larger text" setting.
github-actions commentedon Aug 28, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.