Skip to content

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

@emileswain

Description

@emileswain

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions