From daa0e7fa5274a7ad687cc93eda97a0d85950d44f Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Fri, 3 Jun 2016 10:20:43 -0700 Subject: [PATCH] Fix DragUpdateDetails docs (#4350) I changed the behavior late in the code review but didn't update this dartdoc. --- packages/flutter/lib/src/gestures/drag.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/gestures/drag.dart b/packages/flutter/lib/src/gestures/drag.dart index a7f04dd467..a22685de4c 100644 --- a/packages/flutter/lib/src/gestures/drag.dart +++ b/packages/flutter/lib/src/gestures/drag.dart @@ -74,9 +74,10 @@ class DragUpdateDetails { /// update. /// /// If the [GestureDragUpdateCallback] is for a one-dimensional drag (e.g., - /// a horizontal or vertical drag), then this value contains the non-zero - /// component of [delta]. Otherwise, if the [GestureDragUpdateCallback] is for - /// a two-dimensional drag (e.g., a pan), then this value is zero. + /// a horizontal or vertical drag), then this value contains the component of + /// [delta] along the primary axis (e.g., horizontal or vertical, + /// respectively). Otherwise, if the [GestureDragUpdateCallback] is for a + /// two-dimensional drag (e.g., a pan), then this value is null. final double primaryDelta; }