From 117c7097ca064b6aa13927667780aea9c66decbd Mon Sep 17 00:00:00 2001 From: LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:15:10 -0700 Subject: [PATCH] Fix TextStyle terminology (#137000) cascading -> inheritance --- packages/flutter/lib/src/painting/text_style.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/painting/text_style.dart b/packages/flutter/lib/src/painting/text_style.dart index 3fd51313a7ba7..e84e2b4176e61 100644 --- a/packages/flutter/lib/src/painting/text_style.dart +++ b/packages/flutter/lib/src/painting/text_style.dart @@ -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