Skip to content

Commit

Permalink
Fix TextStyle terminology (flutter#137000)
Browse files Browse the repository at this point in the history
cascading -> inheritance
  • Loading branch information
LongCatIsLooong authored Oct 23, 2023
1 parent 2de1af4 commit 117c709
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/flutter/lib/src/painting/text_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,10 @@ class TextStyle with Diagnosticable {
/// Otherwise, the combining is allowed, and the returned [TextStyle] inherits
/// the [inherit] value from the method receiver.
///
/// This property has no effect on [TextSpan]'s text style cascading: in a
/// [TextSpan] tree, a [TextSpan]'s text style can be combined with that of an
/// ancestor [TextSpan] if it has unspecified fields, regardless of its
/// [inherit] value.
/// This property does not affect the text style inheritance in an [InlineSpan]
/// tree: an [InlineSpan]'s text style is merged with that of an ancestor
/// [InlineSpan] if it has unspecified fields, regardless of its [inherit]
/// value.
///
/// Properties that don't have explicit values or other default values to fall
/// back to will revert to the defaults: white in color, a font size of 14
Expand Down

0 comments on commit 117c709

Please sign in to comment.