simc / auto_size_text

Flutter widget that automatically resizes text to fit perfectly within its bounds.
https://pub.dev/packages/auto_size_text
MIT License
2.06k stars 240 forks source link

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

Open emileswain opened 4 years ago

emileswain commented 4 years ago

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