Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoSizeText Not work correctly on iOS when set Accessibility -> Display & Text Size -> Bold Text #119

Open
dodatw opened this issue Jul 1, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@dodatw
Copy link

dodatw commented Jul 1, 2022

AutoSizeText is very useful package.
It work perfect before I found this issue.

The Text not adjust to right size when User enable Bold text in System (iOS)
Setting -> Accessibility -> Display & Text Size -> Bold Text

After enable this item in system, some text be Crop.

Version

  • Flutter version: [2.0.6]
  • auto_size_text version: [3.0.0]
@dodatw dodatw added the bug Something isn't working label Jul 1, 2022
@TomTom0815
Copy link

I can confirm that this is a bug. I ran into the same problem with iOS accessibility feature messing with autosize text.

Here's my workaround for the problem (basically, it overrides the accessibility settings - which is not a good idea, as this feature is useful for users with visual impairments)

MaterialApp
        builder: (context, child) {
          return MediaQuery(
            data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0, boldText: false),
            child: child ?? Container(),
          );
        },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants