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

Font Size issue on Android 10 and some devices #335

Closed
thenexus00 opened this issue Jun 25, 2020 · 2 comments
Closed

Font Size issue on Android 10 and some devices #335

thenexus00 opened this issue Jun 25, 2020 · 2 comments

Comments

@thenexus00
Copy link

This may be as a result of the AndoidX stuff and changes in 10.
On some devices running Android 10 like - Huawei and Samsung phones there is an issue with font size:

https://www.dropbox.com/s/710k7n2dt3ttllj/Screenshot_1592967593.png?dl=0

All Android 9 seem fine, IOS is totally fine.

I have gone in and tried to do style to force things:
style: { "": Style( color: Color.fromRGBO(55, 55, 55, 1.0), fontSize: FontSize(15.0), fontWeight: FontWeight.normal, ), "p": Style( color: Color.fromRGBO(55, 55, 55, 1.0), fontSize: FontSize(16.0), fontWeight: FontWeight.normal, textAlign: TextAlign.left, ), },

But it does not seem to fix the issue.
I also forced on the main theme...
textTheme: TextTheme( bodyText1: TextStyle( fontSize: 15.0, color: Color.fromRGBO(55, 55, 55, 1.0) ), bodyText2: TextStyle(fontSize: 15.0, color: Color.fromRGBO(55, 55, 55, 1.0)), ),

And we still have the issue on the devices.

-The Html is pretty clean, just paragraphs

  • Comes from an API call to a server and rendered out
  • Data - the HTML
  • Style as shown above added

As I mentioned it is fine on Android 9 and I have a feeling it may be to do with the changed Accessibility stuff but not show how to fix this. Maybe if the package style on HTML supported option for textscalefactor to be able to maybe force 1.0 if that is the issue?

@erickok
Copy link
Collaborator

erickok commented Jun 25, 2020

Duplicate of #308. A fix is proposed but seems to be hanging for various reasons (mostly outside of this project).

@ryan-berger
Copy link
Collaborator

Yes, this is a duplicate of #308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants