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

Exceedingly long single word text, like folder paths. #54

Open
emileswain opened this issue May 8, 2020 · 0 comments
Open

Exceedingly long single word text, like folder paths. #54

emileswain opened this issue May 8, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@emileswain
Copy link

emileswain commented May 8, 2020

Is your feature request related to a problem? Please describe.
I'm showing folder paths in a ListTile and using AutoSizeText to fit them nicely on two lines.
Long folders with no spaces in them didn't really work that well.

Describe the solution you'd like
A parameter to adjust the algorithm to accomodate super long folder paths. i.e. isFolder:true

Describe alternatives you've considered
I got around this with
"C:\\\\Super\\long\\folder\\doesnt\\wrap\\nicely\\which\\is\\a\\shame".split('\\').join('\u200A\\')

Basicaly i found a super short space character in unicode from https://www.compart.com/en/unicode/category/Zs so the existing AutoSizeText layout algorithm would just work.

Version

  • Flutter version: [e.g. 1.5.4]
  • auto_size_text version: [e.g. 1.2.1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant