StrutStyle
TBD
Properties
font_family- SeeText.font_family.force_strut_height- Whether the strut height should be forced.height- The minimum height of the strut, as a multiple ofsize.italic- Whether to use italic typeface.leading- The amount of additional space to place between lines when rendering text.size- The size of text (in logical pixels) to use when getting metrics from the font.weight- The typeface thickness to use when calculating the strut.
Methods
copy- Returns a copy of this object with the specified properties overridden.
Properties
force_strut_heightclass-attributeinstance-attribute
force_strut_height: bool | None = NoneWhether the strut height should be forced.
Defaults to False.
heightclass-attributeinstance-attribute
height: Number | None = NoneThe minimum height of the strut, as a multiple of size.
See detailed explanation here: https://api.flutter.dev/flutter/painting/StrutStyle/height.html
leadingclass-attributeinstance-attribute
leading: Number | None = NoneThe amount of additional space to place between lines when rendering text.
Defaults to using the font-specified leading value.
sizeclass-attributeinstance-attribute
size: Number | None = NoneThe size of text (in logical pixels) to use when getting metrics from the font.
Defaults to 14.
weightclass-attributeinstance-attribute
weight: FontWeight | None = NoneThe typeface thickness to use when calculating the strut.
Defaults to FontWeight.W_400.
Methods
copy
copy(
size: Number | None = None,
height: Number | None = None,
weight: FontWeight | None = None,
italic: bool | None = None,
font_family: str | None = None,
leading: Number | None = None,
force_strut_height: bool | None = None,
) -> StrutStyleReturns a copy of this object with the specified properties overridden.