Commit 0084e95a authored by Adam Barth's avatar Adam Barth

Update RichText dartdoc

The old text was misleading because it was written when RichText was an
implementation detail of Text.

Fixes #2624
parent 44533012
......@@ -1540,8 +1540,8 @@ class Flexible extends ParentDataWidget<Flex> {
/// A paragraph of rich text.
///
/// This class is rarely used directly. Instead, consider using [Text], which
/// integrates with [DefaultTextStyle].
/// Consider using [Text], which integrates with [DefaultTextStyle], rather than
/// this widget, which requires explicit styling.
class RichText extends LeafRenderObjectWidget {
RichText({ Key key, this.text }) : super(key: key) {
assert(text != null);
......
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