Skip to content

Text Indent

Use indent-{size} utilities to set the indentation of a text block. Values use the standard spacing scale (indent-N = N × 4 px).


Use utilities like indent-8 to indent text within an element:

Style('indent-8', child: Text('So I started to walk into the water...'))
ClassIndent
indent-00 px
indent-px1 px
indent-0.52 px
indent-14 px
indent-28 px
indent-416 px
indent-624 px
indent-832 px
indent-1040 px
indent-1248 px
indent-1664 px
indent-2080 px
-indent-NNot yet supported — first-line-only negative indent has no Flutter API. See the Library prerequisites section in PLAYGROUND_PARITY.md.

All indent-{size} utilities use the standard spacing scale. The implementation prepends an invisible WidgetSpan of the indent width to the first line of the paragraph, so only the first line is shifted (matching CSS text-indent semantics).