From 0bf0f5c1dad62ef40efd248ff9e442bed4764e74 Mon Sep 17 00:00:00 2001 From: liyuqian Date: Fri, 15 Mar 2019 22:03:13 -0700 Subject: [PATCH] Add doc about MediaQuery to Chip (#29445) Fixes https://github.com/flutter/flutter/issues/21232 --- packages/flutter/lib/src/material/chip.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/chip.dart b/packages/flutter/lib/src/material/chip.dart index 0b67081027..11d4ceb117 100644 --- a/packages/flutter/lib/src/material/chip.dart +++ b/packages/flutter/lib/src/material/chip.dart @@ -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} ///