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

WrapWords parameter not working when use non breaking space #142

Open Wicz3k opened 8 months ago

Wicz3k commented 8 months ago

Steps to Reproduce When i use \u{00A0} - non breaking space parameter wrapWords = false does not change anything. Use another letter instead off non breaking space make this parameter working well.

Code sample

const AutoSizeText(
  'FAVOURITE\u{00A0}ENERGY CONTROL',
  wrapWords: false,
  textAlign: TextAlign.center,
  maxLines: 2,
  style: TextStyle(fontSize: 32),
)

Screenshots obraz obraz

Version