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
Copy file name to clipboardExpand all lines: lib/ui/text.dart
+12-24Lines changed: 12 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -256,7 +256,6 @@ Int32List _encodeTextStyle(
256
256
double letterSpacing,
257
257
double wordSpacing,
258
258
double height,
259
-
double leading,
260
259
Locale locale,
261
260
Paint background,
262
261
Paint foreground,
@@ -311,24 +310,20 @@ Int32List _encodeTextStyle(
311
310
result[0] |=1<<12;
312
311
// Passed separately to native.
313
312
}
314
-
if (leading !=null) {
315
-
result[0] |=1<<13;
316
-
// Passed separately to native.
317
-
}
318
313
if (locale !=null) {
319
-
result[0] |=1<<14;
314
+
result[0] |=1<<13;
320
315
// Passed separately to native.
321
316
}
322
317
if (background !=null) {
323
-
result[0] |=1<<15;
318
+
result[0] |=1<<14;
324
319
// Passed separately to native.
325
320
}
326
321
if (foreground !=null) {
327
-
result[0] |=1<<16;
322
+
result[0] |=1<<15;
328
323
// Passed separately to native.
329
324
}
330
325
if (shadows !=null) {
331
-
result[0] |=1<<17;
326
+
result[0] |=1<<16;
332
327
// Passed separately to native.
333
328
}
334
329
return result;
@@ -349,8 +344,7 @@ class TextStyle {
349
344
/// * `letterSpacing`: The amount of space (in logical pixels) to add between each letter.
350
345
/// * `wordSpacing`: The amount of space (in logical pixels) to add at each sequence of white-space (i.e. between each word).
351
346
/// * `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.
352
-
/// * `height`: The height of this text span, as a multiple of the sum of font size and leading.
353
-
/// * `leading`: Custom leading to use instead of the font-provided leading as a multiple of font size. When null, default font leading will be used. Leading is the additional spacing between lines.
347
+
/// * `height`: The height of this text span, as a multiple of the font size.
354
348
/// * `locale`: The locale used to select region-specific glyphs.
355
349
/// * `background`: The paint drawn as a background for the text.
356
350
/// * `foreground`: The paint used to draw the text. If this is specified, `color` must be null.
0 commit comments