Commit e7f33586 authored by Adam Barth's avatar Adam Barth

Address review comments (#3515)

Somehow I missed these in my previous patch.
parent 8ac9cc45
......@@ -1720,18 +1720,19 @@ class Flexible extends ParentDataWidget<Flex> {
/// A paragraph of rich text.
///
/// The [RichText] widget displays text using a variety of different styles. The
/// The [RichText] widget displays text that uses multiple different styles. The
/// text to display is described using a tree of [TextSpan] objects, each of
/// which has an associated style, which is used for that subtree. The text
/// might break across multiple lines or might all be displayed on the layout
/// constraints.
/// which has an associated style that is used for that subtree. The text might
/// break across multiple lines or might all be displayed on the same line
/// depending on the layout constraints.
///
/// Text displayed in a [RichText] widget must be explicitly styled. When
/// picking which style to use, consider using the closest enclosing
/// [DefaultTextStyle] to provide defaults.
/// picking which style to use, consider using [DefaultTextStyle.of] the current
/// [BuildContext] to provide defaults.
///
/// All the text uses the same style, consider using the [Text] widget, which is
/// less verbose and integrates with [DefaultTextStyle] for default styling.
/// When all the text uses the same style, consider using the [Text] widget,
/// which is less verbose and integrates with [DefaultTextStyle] for default
/// styling.
///
/// See also:
///
......@@ -1791,15 +1792,15 @@ class DefaultTextStyle extends InheritedWidget {
/// A run of text with a single style.
///
/// The [Text] widget displays a string of text with single style. The string
/// might break across multiple lines or might all be displayed on the layout
/// constraints.
/// might break across multiple lines or might all be displayed on the same line
/// depending on the layout constraints.
///
/// The [style] argument is optional. When omitted, the text will use the style
/// from the closest enclosing [DefaultTextStyle] by default. If the given
/// style's [TextStyle.inherit] property is true, the given style will be
/// merged with the closest enclosing [DefaultTextStyle]. This merging behavior
/// is useful, for example, to make the text bold while using the default font
/// family and size.
/// from the closest enclosing [DefaultTextStyle]. If the given style's
/// [TextStyle.inherit] property is true, the given style will be merged with
/// the closest enclosing [DefaultTextStyle]. This merging behavior is useful,
/// for example, to make the text bold while using the default font family and
/// size.
///
/// To display text that uses multiple styles (e.g., a paragraph with some bold
/// words), use [RichText].
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment