Fix StrutStyle docs to remove references to leading property. (#49443)
This commit is contained in:
parent
dc084b9097
commit
f323540416
@ -28,10 +28,10 @@ import 'text_style.dart';
|
|||||||
///
|
///
|
||||||
/// The vertical components of strut are as follows:
|
/// The vertical components of strut are as follows:
|
||||||
///
|
///
|
||||||
/// * `leading * fontSize / 2` or half the font leading if `leading` is undefined (half leading)
|
/// * Half the font-defined leading
|
||||||
/// * `ascent * height`
|
/// * `ascent * height`
|
||||||
/// * `descent * height`
|
/// * `descent * height`
|
||||||
/// * `leading * fontSize / 2` or half the font leading if `leading` is undefined (half leading)
|
/// * Half the font-defined leading
|
||||||
///
|
///
|
||||||
/// The sum of these four values is the total height of the line.
|
/// The sum of these four values is the total height of the line.
|
||||||
///
|
///
|
||||||
@ -40,7 +40,8 @@ import 'text_style.dart';
|
|||||||
/// split evenly between the top and bottom. The values for `ascent` and
|
/// split evenly between the top and bottom. The values for `ascent` and
|
||||||
/// `descent` are provided by the font named by [fontFamily]. If no
|
/// `descent` are provided by the font named by [fontFamily]. If no
|
||||||
/// [fontFamily] or [fontFamilyFallback] is provided, then the platform's
|
/// [fontFamily] or [fontFamilyFallback] is provided, then the platform's
|
||||||
/// default family will be used.
|
/// default family will be used. Many fonts will have leading values of
|
||||||
|
/// zero, so in practice, the leading component is often irrelevant.
|
||||||
///
|
///
|
||||||
/// When [height] is omitted or null, then the font defined ascent and descent
|
/// When [height] is omitted or null, then the font defined ascent and descent
|
||||||
/// will be used. The font's combined ascent and descent may be taller or
|
/// will be used. The font's combined ascent and descent may be taller or
|
||||||
|
Loading…
x
Reference in New Issue
Block a user