Update RichText dartdoc

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

Fixes #2624
This commit is contained in:
Adam Barth 2016-03-14 20:12:39 -07:00
parent 445330129d
commit 0084e95a43

View File

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