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

[QUESTION] Scale font size #1157

Closed
Almis90 opened this issue Oct 6, 2022 · 4 comments
Closed

[QUESTION] Scale font size #1157

Almis90 opened this issue Oct 6, 2022 · 4 comments
Labels
accessibility Issues with accessibility (font scaling, screen readers, etc.) duplicate This issue or pull request already exists question

Comments

@Almis90
Copy link

Almis90 commented Oct 6, 2022

Hello, how I can increase font scaling for all texts using the 3.0.0-alpha.6 version? I have created a custom tagMatcher, it increases the size but the final result is not as good as without a custom renderer (except for font size). Also I don't want to set TextStyle manually, maybe there is an option to map Style to TextStyle?

EDIT: found mapper from Style To TextStyle but still don't know how to setup global font size scale

              widget: (context, buildChildren) {
                return Text(
                  context.tree.element?.text ?? '',
                  style: TextStyle(
                    fontSize: context.style.fontSize!.value * 1.2,
                    color: context.style.color
                  ),
                );
              },

A picture of a cute animal (not mandatory but encouraged)

@rizkiiansyah
Copy link

Up

2 similar comments
@cogivn
Copy link

cogivn commented Dec 12, 2022

Up

@esuljic
Copy link

esuljic commented Mar 24, 2023

Up

@Sub6Resources Sub6Resources added accessibility Issues with accessibility (font scaling, screen readers, etc.) in-triage Issue's that I've seen but haven't had a chance to thoroughly review and/or categorize labels May 9, 2023
@Sub6Resources
Copy link
Owner

Merging into #1211

@Sub6Resources Sub6Resources added duplicate This issue or pull request already exists and removed in-triage Issue's that I've seen but haven't had a chance to thoroughly review and/or categorize labels May 9, 2023
@Sub6Resources Sub6Resources closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Issues with accessibility (font scaling, screen readers, etc.) duplicate This issue or pull request already exists question
Projects
None yet
Development

No branches or pull requests

5 participants