From a6cdc2b732a8b7bb202fe52b7e369817f202eb93 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Fri, 15 Jun 2018 11:27:06 -0700 Subject: [PATCH] mention Text.rich on RichText (#18434) --- packages/flutter/lib/src/widgets/basic.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index a5752e9d80..fbfce09348 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -4244,9 +4244,11 @@ class Flow extends MultiChildRenderObjectWidget { /// [BuildContext] to provide defaults. For more details on how to style text in /// a [RichText] widget, see the documentation for [TextStyle]. /// -/// When all the text uses the same style, consider using the [Text] widget, -/// which is less verbose and integrates with [DefaultTextStyle] for default -/// styling. +/// Consider using the [Text] widget to integrate with the [DefaultTextStyle] +/// automatically. When all the text uses the same style, the default constructor +/// is less verbose. The [Text.rich] constructor allows you to style multiple +/// spans with the default text style while still allowing specified styles per +/// span. /// /// ## Sample code ///