StrutStyle
TBD
Properties
-
font_family
(str | None
) – -
force_strut_height
(bool | None
) –Whether the strut height should be forced.
-
height
(Number | None
) –The minimum height of the strut, as a multiple of
size
. -
italic
(bool
) –Whether to use italic typeface.
-
leading
(Number | None
) –The amount of additional space to place between lines when rendering text.
-
size
(Number | None
) –The size of text (in logical pixels) to use when getting metrics from the font.
-
weight
(FontWeight | None
) –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_height
#
force_strut_height: bool | None = None
Whether the strut height should be forced.
Defaults to False
.
height
#
height: Number | None = None
The minimum height of the strut, as a multiple of size
.
See detailed explanation here: https://api.flutter.dev/flutter/painting/StrutStyle/height.html
leading
#
leading: Number | None = None
The amount of additional space to place between lines when rendering text.
Defaults to using the font-specified leading value.
size
#
size: Number | None = None
The size of text (in logical pixels) to use when getting metrics from the font.
Defaults to 14
.
weight
#
weight: FontWeight | None = None
The 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,
) -> StrutStyle
Returns a copy of this object with the specified properties overridden.