From 696f4710f1d119186d5acdd6aa10e3ca1fe2f162 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 9 Jun 2016 10:10:13 -0700 Subject: [PATCH] Improve hitTestSelf and hitTestChildren docs (#4484) Fixes #4427 --- packages/flutter/lib/src/rendering/box.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/flutter/lib/src/rendering/box.dart b/packages/flutter/lib/src/rendering/box.dart index 5164daaeab..980f19bd80 100644 --- a/packages/flutter/lib/src/rendering/box.dart +++ b/packages/flutter/lib/src/rendering/box.dart @@ -1177,6 +1177,9 @@ abstract class RenderBox extends RenderObject { /// Override this function if this render object can be hit even if its /// children were not hit. + /// + /// Used by [hitTest]. If you override [hitTest] and do not call this + /// function, then you don't need to implement this function. @protected bool hitTestSelf(Point position) => false; @@ -1186,6 +1189,9 @@ abstract class RenderBox extends RenderObject { /// Typically children should be hit tested in reverse paint order so that /// hit tests at locations where children overlap hit the child that is /// visually "on top" (i.e., paints later). + /// + /// Used by [hitTest]. If you override [hitTest] and do not call this + /// function, then you don't need to implement this function. @protected bool hitTestChildren(HitTestResult result, { Point position }) => false;