-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add the textScaleFactor parameter #6
Comments
Thank you for the thorough explanation! |
Version 2.0.45 (2021-04-22) |
Thanks for fixing it so quickly. The current fix is fine for my use case, so you don't need to change anything. But for more flexibility in the future you might want the textScaleFactor to be customizable like the overflow and maxLines. Something like |
Thank you for your feedback! |
I added it for completeness. |
A
Text
widget scales the font based on thetextScaleFactor * fontSize
.If you never set this scale, it uses the value from the context, which is usually determined by the accessibility settings in android.
RichText
doesn't seem to do use the contexttextScaleFactor
by default, which makes simple_rich_text ignore it too.So on some phones the rich text is a different size from any other text widgets.
Using a mediaquery
RichText
follows the behavior of normalText
widgets.Can you add this parameter to the simple_rich_text constructor, and pass that to
RichText
?Here is how you can manually set the global textScaleFactor in main to do some testing.
The text was updated successfully, but these errors were encountered: