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:
height
: set spacing between lines.letterSpacing
: set extra spacing between letters.wordSpacing
: adds extra spacing to whitespace.