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