Skip to main content
Logo Appt Light

Text spacing on Flutter

Content should adapt to increased spacing between lines, words, letters, and paragraphs. This helps users with effectively reading text.

With Flutter, it is possible to set spacing in text with TextStyle. This can be done globally in the ThemeData or within a Text via the style parameter.

With the TextStyle class you can use the following attributes for spacing in the text:

TextStyle(
  height: 1.5,
  letterSpacing: 3.0,
  wordSpacing: 5.0
);

Feedback?

Let us know!