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

Does not handle final long words nicely #120

Open
ScottOber opened this issue Jul 2, 2022 · 0 comments
Open

Does not handle final long words nicely #120

ScottOber opened this issue Jul 2, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ScottOber
Copy link

Steps to Reproduce
Use AutoSizeText with a sentence that has a very long last word with maxLines set to 1.
The entire last word is dropped and the font size is set to minFontSize making the viewable text unnecessarily small.

Better behavior would be to show as much of the last word as possible following the 'overflow' parameter to clip or elide it.

Code sample

AutoSizeText(minFontSize: 8,  maxLines: 1, 'This is a bad url: xxxxxxxxxxxxxxxxxxxx.yyyyyyyyyyyyyyyyyyyyyyyyyyy.zzz')

Screenshots
If applicable, add screenshots to help explain your problem.

Version

  • Flutter version: 3.0.2
  • auto_size_text version: 3.0.0
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

1 participant