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> { ...@@ -1720,18 +1720,19 @@ class Flexible extends ParentDataWidget<Flex> {
/// A paragraph of rich text. /// 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 /// 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 /// which has an associated style that is used for that subtree. The text might
/// might break across multiple lines or might all be displayed on the layout /// break across multiple lines or might all be displayed on the same line
/// constraints. /// depending on the layout constraints.
/// ///
/// Text displayed in a [RichText] widget must be explicitly styled. When /// Text displayed in a [RichText] widget must be explicitly styled. When
/// picking which style to use, consider using the closest enclosing /// picking which style to use, consider using [DefaultTextStyle.of] the current
/// [DefaultTextStyle] to provide defaults. /// [BuildContext] to provide defaults.
/// ///
/// All the text uses the same style, consider using the [Text] widget, which is /// When all the text uses the same style, consider using the [Text] widget,
/// less verbose and integrates with [DefaultTextStyle] for default styling. /// which is less verbose and integrates with [DefaultTextStyle] for default
/// styling.
/// ///
/// See also: /// See also:
/// ///
...@@ -1791,15 +1792,15 @@ class DefaultTextStyle extends InheritedWidget { ...@@ -1791,15 +1792,15 @@ class DefaultTextStyle extends InheritedWidget {
/// A run of text with a single style. /// A run of text with a single style.
/// ///
/// The [Text] widget displays a string of text with single style. The string /// 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 /// might break across multiple lines or might all be displayed on the same line
/// constraints. /// depending on the layout constraints.
/// ///
/// The [style] argument is optional. When omitted, the text will use the style /// The [style] argument is optional. When omitted, the text will use the style
/// from the closest enclosing [DefaultTextStyle] by default. If the given /// from the closest enclosing [DefaultTextStyle]. If the given style's
/// style's [TextStyle.inherit] property is true, the given style will be /// [TextStyle.inherit] property is true, the given style will be merged with
/// merged with the closest enclosing [DefaultTextStyle]. This merging behavior /// the closest enclosing [DefaultTextStyle]. This merging behavior is useful,
/// is useful, for example, to make the text bold while using the default font /// for example, to make the text bold while using the default font family and
/// family and size. /// size.
/// ///
/// To display text that uses multiple styles (e.g., a paragraph with some bold /// To display text that uses multiple styles (e.g., a paragraph with some bold
/// words), use [RichText]. /// 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