StrutStyle
TBD
Properties
-
font_family(Optional[str]) – -
force_strut_height(Optional[bool]) –Whether the strut height should be forced.
-
height(Optional[Number]) –The minimum height of the strut, as a multiple of
size. -
italic(bool) –Whether to use italic typeface.
-
leading(Optional[Number]) –The amount of additional space to place between lines when rendering text.
-
size(Optional[Number]) –The size of text (in logical pixels) to use when getting metrics from the font.
-
weight(Optional[FontWeight]) –The typeface thickness to use when calculating the strut.
Methods
-
copy–Returns a copy of this object with the specified properties overridden.
Properties#
font_family
class-attribute
instance-attribute
#
force_strut_height
class-attribute
instance-attribute
#
Whether the strut height should be forced.
Defaults to False.
height
class-attribute
instance-attribute
#
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
class-attribute
instance-attribute
#
The amount of additional space to place between lines when rendering text.
Defaults to using the font-specified leading value.
size
class-attribute
instance-attribute
#
The size of text (in logical pixels) to use when getting metrics from the font.
Defaults to 14.
weight
class-attribute
instance-attribute
#
weight: Optional[FontWeight] = None
The typeface thickness to use when calculating the strut.
Defaults to FontWeight.W_400.
Methods#
copy
#
copy(
*,
size: Optional[Number] = None,
height: Optional[Number] = None,
weight: Optional[FontWeight] = None,
italic: Optional[bool] = None,
font_family: Optional[str] = None,
leading: Optional[Number] = None,
force_strut_height: Optional[bool] = None,
) -> StrutStyle
Returns a copy of this object with the specified properties overridden.