Skip to content

Commit 117c709

Browse files
Fix TextStyle terminology (flutter#137000)
cascading -> inheritance
1 parent 2de1af4 commit 117c709

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/flutter/lib/src/painting/text_style.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,10 +518,10 @@ class TextStyle with Diagnosticable {
518518
/// Otherwise, the combining is allowed, and the returned [TextStyle] inherits
519519
/// the [inherit] value from the method receiver.
520520
///
521-
/// This property has no effect on [TextSpan]'s text style cascading: in a
522-
/// [TextSpan] tree, a [TextSpan]'s text style can be combined with that of an
523-
/// ancestor [TextSpan] if it has unspecified fields, regardless of its
524-
/// [inherit] value.
521+
/// This property does not affect the text style inheritance in an [InlineSpan]
522+
/// tree: an [InlineSpan]'s text style is merged with that of an ancestor
523+
/// [InlineSpan] if it has unspecified fields, regardless of its [inherit]
524+
/// value.
525525
///
526526
/// Properties that don't have explicit values or other default values to fall
527527
/// back to will revert to the defaults: white in color, a font size of 14

0 commit comments

Comments
 (0)