mention Text.rich on RichText (#18434)

This commit is contained in:
Jonah Williams 2018-06-15 11:27:06 -07:00 committed by GitHub
parent 1793ed79b1
commit a6cdc2b732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
///