Unverified Commit 80142d45 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Update the alt text to match recommendations in...

Update the alt text to match recommendations in https://html.spec.whatwg.org/multipage/images.html#alt (#74089)
parent 57d695a5
...@@ -125,10 +125,10 @@ const double _kDefaultFontSize = 14.0; ...@@ -125,10 +125,10 @@ const double _kDefaultFontSize = 14.0;
/// The [height] property allows manual adjustment of the height of the line as /// The [height] property allows manual adjustment of the height of the line as
/// a multiple of [fontSize]. For most fonts, setting [height] to 1.0 is not /// a multiple of [fontSize]. For most fonts, setting [height] to 1.0 is not
/// the same as omitting or setting height to null. The following diagram /// the same as omitting or setting height to null. The following diagram
/// illustrates the difference between the font-metrics defined line height and /// illustrates the difference between the font-metrics-defined line height and
/// the line height produced with `height: 1.0` (also known as the EM-square): /// the line height produced with `height: 1.0` (also known as the EM-square):
/// ///
/// ![Text height diagram](https://flutter.github.io/assets-for-api-docs/assets/painting/text_height_diagram.png) /// ![With the font-metrics-defined line height, there is space between lines appropriate for the font, whereas the EM-square is only the height required to hold most of the characters.](https://flutter.github.io/assets-for-api-docs/assets/painting/text_height_diagram.png)
/// ///
/// {@tool snippet} /// {@tool snippet}
/// The [height] property can be used to change the line height. Here, the line /// The [height] property can be used to change the line height. Here, the line
...@@ -146,7 +146,7 @@ const double _kDefaultFontSize = 14.0; ...@@ -146,7 +146,7 @@ const double _kDefaultFontSize = 14.0;
/// ///
/// Examples of the resulting heights from different values of `TextStyle.height`: /// Examples of the resulting heights from different values of `TextStyle.height`:
/// ///
/// ![Text height comparison diagram](https://flutter.github.io/assets-for-api-docs/assets/painting/text_height_comparison_diagram.png) /// ![Since the explicit line height is applied as a scale factor on the font-metrics-defined line height, the gap above the text grows faster, as the height grows, than the gap below the text.](https://flutter.github.io/assets-for-api-docs/assets/painting/text_height_comparison_diagram.png)
/// ///
/// See [StrutStyle] for further control of line height at the paragraph level. /// See [StrutStyle] for further control of line height at the paragraph level.
/// ///
...@@ -191,7 +191,7 @@ const double _kDefaultFontSize = 14.0; ...@@ -191,7 +191,7 @@ const double _kDefaultFontSize = 14.0;
/// should be provided as a [foreground] paint. The following example uses a [Stack] /// should be provided as a [foreground] paint. The following example uses a [Stack]
/// to produce a stroke and fill effect. /// to produce a stroke and fill effect.
/// ///
/// ![Text border](https://flutter.github.io/assets-for-api-docs/assets/widgets/text_border.png) /// ![](https://flutter.github.io/assets-for-api-docs/assets/widgets/text_border.png)
/// ///
/// ```dart /// ```dart
/// Stack( /// Stack(
...@@ -227,7 +227,7 @@ const double _kDefaultFontSize = 14.0; ...@@ -227,7 +227,7 @@ const double _kDefaultFontSize = 14.0;
/// applied to the text. Here we provide a [Paint] with a [ui.Gradient] /// applied to the text. Here we provide a [Paint] with a [ui.Gradient]
/// shader. /// shader.
/// ///
/// ![Text gradient](https://flutter.github.io/assets-for-api-docs/assets/widgets/text_gradient.png) /// ![](https://flutter.github.io/assets-for-api-docs/assets/widgets/text_gradient.png)
/// ///
/// ```dart /// ```dart
/// Text( /// Text(
...@@ -551,11 +551,11 @@ class TextStyle with Diagnosticable { ...@@ -551,11 +551,11 @@ class TextStyle with Diagnosticable {
/// defined line height and the line height produced with `height: 1.0` /// defined line height and the line height produced with `height: 1.0`
/// (which forms the upper and lower edges of the EM-square): /// (which forms the upper and lower edges of the EM-square):
/// ///
/// ![Text height diagram](https://flutter.github.io/assets-for-api-docs/assets/painting/text_height_diagram.png) /// ![With the font-metrics-defined line height, there is space between lines appropriate for the font, whereas the EM-square is only the height required to hold most of the characters.](https://flutter.github.io/assets-for-api-docs/assets/painting/text_height_diagram.png)
/// ///
/// Examples of the resulting line heights from different values of `TextStyle.height`: /// Examples of the resulting line heights from different values of `TextStyle.height`:
/// ///
/// ![Text height comparison diagram](https://flutter.github.io/assets-for-api-docs/assets/painting/text_height_comparison_diagram.png) /// ![Since the explicit line height is applied as a scale factor on the font-metrics-defined line height, the gap above the text grows faster, as the height grows, than the gap below the text.](https://flutter.github.io/assets-for-api-docs/assets/painting/text_height_comparison_diagram.png)
/// ///
/// See [StrutStyle] for further control of line height at the paragraph level. /// See [StrutStyle] for further control of line height at the paragraph level.
final double? height; final double? height;
......
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