From 3616ebbd30e24bd14d8b71637c7080a3f70b9bc6 Mon Sep 17 00:00:00 2001 From: amirh Date: Fri, 13 Oct 2017 13:33:39 -0700 Subject: [PATCH] Emphasize the behavior property in GestureDetector's class doc. (#12536) --- packages/flutter/lib/src/widgets/gesture_detector.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter/lib/src/widgets/gesture_detector.dart b/packages/flutter/lib/src/widgets/gesture_detector.dart index 93c63729ed..6fa126f40b 100644 --- a/packages/flutter/lib/src/widgets/gesture_detector.dart +++ b/packages/flutter/lib/src/widgets/gesture_detector.dart @@ -95,6 +95,9 @@ class GestureRecognizerFactoryWithHandlers extends /// If this widget has a child, it defers to that child for its sizing behavior. /// If it does not have a child, it grows to fit the parent instead. /// +/// By default a GestureDetector with an invisible child ignores touches; +/// this behavior can be controlled with [behavior]. +/// /// GestureDetector also listens for accessibility events and maps /// them to the callbacks. To ignore accessibility events, set /// [excludeFromSemantics] to true.