Word Break
Use break-{value} utilities to control how words break when they reach the
end of a line.
Basic example
Section titled “Basic example”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.
Class reference
Section titled “Class reference”| Class | Behavior |
|---|---|
break-normal | Word-level wrapping; long words overflow whole |
break-words | Inserts break points within words to prevent overflow |
break-all | Breaks between any two characters (zero-width-space hints) |
break-keep | Not 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. |