From 5071657e8e7c5edd6ff205df0e0176f605a73576 Mon Sep 17 00:00:00 2001 From: Gary Qian Date: Fri, 9 Nov 2018 11:32:46 -0800 Subject: [PATCH] Add docs to explain cursor drawing behavior. (#24135) --- packages/flutter/lib/src/widgets/editable_text.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index cea7e855de..df7e67c337 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart @@ -417,6 +417,12 @@ class EditableText extends StatefulWidget { /// How thick the cursor will be. /// /// Defaults to 2.0 + /// + /// The cursor will draw under the text. The cursor width will extend + /// to the right of the boundary between characters for left-to-right text + /// and to the left for right-to-left text. This corresponds to extending + /// downstream relative to the selected position. Negative values may be used + /// to reverse this behavior. /// {@endtemplate} final double cursorWidth;