From f167067d94b81348e185570465b1dfcc55df4df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=BCrtz?= Date: Fri, 9 Aug 2019 23:18:57 +0200 Subject: [PATCH] Fix TextField cursor color documentation (#37801) --- packages/flutter/lib/src/material/text_field.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/material/text_field.dart b/packages/flutter/lib/src/material/text_field.dart index 72e6b6971f..e0f92ad1c3 100644 --- a/packages/flutter/lib/src/material/text_field.dart +++ b/packages/flutter/lib/src/material/text_field.dart @@ -539,7 +539,8 @@ class TextField extends StatefulWidget { /// The color to use when painting the cursor. /// - /// Defaults to the theme's `cursorColor` when null. + /// Defaults to [ThemeData.cursorColor] or [CupertinoTheme.primaryColor] + /// depending on [ThemeData.platform]. final Color cursorColor; /// The appearance of the keyboard.