Unverified Commit 0bf0f5c1 authored by liyuqian's avatar liyuqian Committed by GitHub

Add doc about MediaQuery to Chip (#29445)

Fixes https://github.com/flutter/flutter/issues/21232
parent 90819b75
......@@ -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}
///
......
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