Add doc about MediaQuery to Chip (#29445)

Fixes https://github.com/flutter/flutter/issues/21232
This commit is contained in:
liyuqian
2019-03-15 22:03:13 -07:00
committed by GitHub
parent 90819b75bb
commit 0bf0f5c1da

View File

@@ -448,8 +448,10 @@ abstract class TappableChipAttributes {
/// Supplying a non-null [onDeleted] callback will cause the chip to include a
/// button for deleting the chip.
///
/// Requires one of its ancestors to be a [Material] widget. The [label]
/// and [clipBehavior] arguments must not be null.
/// Its ancestors must include [Material], [MediaQuery], [Directionality], and
/// [MaterialLocalizations]. Typically all of these widgets are provided by
/// [MaterialApp] and [Scaffold]. The [label] and [clipBehavior] arguments must
/// not be null.
///
/// {@tool sample}
///