auto_size_text icon indicating copy to clipboard operation
auto_size_text copied to clipboard

Exceedingly long single word text, like folder paths.

Open emileswain opened this issue 4 years ago • 0 comments

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]

emileswain avatar May 08 '20 14:05 emileswain