Add doc about MediaQuery to Chip (#29445)
Fixes https://github.com/flutter/flutter/issues/21232
This commit is contained in:
@@ -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}
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user