You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: lib/ui/text.dart
+42-34Lines changed: 42 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -1748,7 +1748,7 @@ bool _listEquals<T>(List<T>? a, List<T>? b) {
1748
1748
//
1749
1749
// - Element 7: The enum index of the |textBaseline|.
1750
1750
//
1751
-
// - Element 8: The encoded value of the |textHeightBehavior|.
1751
+
// - Element 8: The encoded value of the |leadingDistribution|.
1752
1752
//
1753
1753
Int32List_encodeTextStyle(
1754
1754
Color? color,
@@ -1765,7 +1765,7 @@ Int32List _encodeTextStyle(
1765
1765
double? letterSpacing,
1766
1766
double? wordSpacing,
1767
1767
double? height,
1768
-
TextHeightBehavior? textHeightBehavior,
1768
+
LeadingDistribution? leadingDistribution,
1769
1769
Locale? locale,
1770
1770
Paint? background,
1771
1771
Paint? foreground,
@@ -1801,9 +1801,9 @@ Int32List _encodeTextStyle(
1801
1801
result[0] |=1<<7;
1802
1802
result[7] = textBaseline.index;
1803
1803
}
1804
-
if (textHeightBehavior!=null) {
1804
+
if (leadingDistribution!=null) {
1805
1805
result[0] |=1<<8;
1806
-
result[8] =textHeightBehavior.encode();
1806
+
result[8] =leadingDistribution.index;
1807
1807
}
1808
1808
if (decorationThickness !=null) {
1809
1809
result[0] |=1<<9;
@@ -1883,7 +1883,7 @@ class TextStyle {
1883
1883
/// * `textBaseline`: The common baseline that should be aligned between this text span and its parent text span, or, for the root text spans, with the line box.
1884
1884
/// * `height`: The height of this text span, as a multiplier of the font size. Omitting `height` will allow the line height
1885
1885
/// to take the height as defined by the font, which may not be exactly the height of the fontSize.
1886
-
/// * `textHeightBehavior`: When `height` is specified, how the extra vertical space should be distributed over and under the text.
1886
+
/// * `leadingDistribution`: When `height` is specified, how the extra vertical space should be distributed over and under the text.
1887
1887
/// * `locale`: The locale used to select region-specific glyphs.
1888
1888
/// * `background`: The paint drawn as a background for the text.
1889
1889
/// * `foreground`: The paint used to draw the text. If this is specified, `color` must be null.
0 commit comments