textHeightBehavior property

TextHeightBehavior textHeightBehavior

Defines how the paragraph will apply TextStyle.height to the ascent of the first line and descent of the last line.

Each boolean value represents whether the TextStyle.height modifier will be applied to the corresponding metric. By default, all properties are true, and TextStyle.height is applied as normal. When set to false, the font's default ascent will be used.


final ui.TextHeightBehavior textHeightBehavior