Skip to content
New issue

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

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

Already on GitHub? # to your account

Text size problem #22

Closed
mudi256 opened this issue Oct 1, 2019 · 4 comments · May be fixed by #136
Closed

Text size problem #22

mudi256 opened this issue Oct 1, 2019 · 4 comments · May be fixed by #136

Comments

@mudi256
Copy link

mudi256 commented Oct 1, 2019

text size not change according to mobile font size.
When we change the mobile font size (small to large or large to small) from settings linkify text font size not change, while in whole app all Text font size change according to mobile font size.

@Cretezy
Copy link
Owner

Cretezy commented Oct 1, 2019

Can you please add a code example?

@mudi256
Copy link
Author

mudi256 commented Oct 2, 2019

Can you please add a code example?

below is code snippet
Linkify( onOpen: (link) async { if (await canLaunch(link.url)) { await launch(link.url); } else { throw 'Could not launch $link'; } }, text :document['content'], style: TextStyle(color: Colors.white), linkStyle: TextStyle(color: Colors.black), ),

@Cretezy
Copy link
Owner

Cretezy commented Dec 27, 2019

Sorry this wouldn't be related to this library I think. It uses RichText and TextSpans to build the widgets, so this would be upstream with Flutter.

You can pass in a size to the TextStyle which would work though. If you can give me a better example I can probably help

@Cretezy Cretezy closed this as completed Dec 27, 2019
@Nanthno
Copy link

Nanthno commented Sep 19, 2021

In case anyone else encounters this issue, the workaround I found is to manually set textScaleFactor in the Linkify constructor to MediaQuery.of(context).textScaleFactor

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

Successfully merging a pull request may close this issue.

3 participants