Unverified Commit f3235404 authored by Gary Qian's avatar Gary Qian Committed by GitHub

Fix StrutStyle docs to remove references to leading property. (#49443)

parent dc084b90
...@@ -28,10 +28,10 @@ import 'text_style.dart'; ...@@ -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'; ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment