Skip to content

Word Break

Use break-{value} utilities to control how words break when they reach the end of a line.


Use break-normal to only break at natural word boundaries (long words overflow), and break-all to break between any two characters when needed:

Style('break-normal', child: Text('The longest word in any of the major...'))
Style('break-all', child: Text('The longest word in any of the major...'))

break-normal renders the paragraph as a Wrap of per-word Text widgets so each word stays whole; long unbreakable words extend past the container’s right edge. break-all inserts zero-width-space hints between every glyph so the line-breaker treats each character boundary as a valid break point.

ClassBehavior
break-normalWord-level wrapping; long words overflow whole
break-wordsInserts break points within words to prevent overflow
break-allBreaks between any two characters (zero-width-space hints)
break-keepNot yet correct for CJK. Flutter’s ICU line-breaker breaks CJK characters regardless of keep-all. See the Library prerequisites section in PLAYGROUND_PARITY.md.