From 75ebce1c0cc906b7d019f2d9b1e8a947c6842f30 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Wed, 9 Jan 2019 14:44:42 -0800 Subject: [PATCH] Update docs for editable_text (TextField) (#26269) * update docs for editable_text (TextField) * typo, clarify behavior when lines > 1 --- packages/flutter/lib/src/widgets/editable_text.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index c8dc527481..fa5363f7c2 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart @@ -346,8 +346,13 @@ class EditableText extends StatefulWidget { /// If this is 1 (the default), the text will not wrap, but will scroll /// horizontally instead. /// - /// If this is null, there is no limit to the number of lines. If it is not - /// null, the value must be greater than zero. + /// If this is null, there is no limit to the number of lines, and the text + /// container will start with enough vertical space for one line and + /// automatically grow to accomodate additional lines as they are entered. + /// + /// If it is not null, the value must be greater than zero. If it is greater + /// than 1, it will take up enough horizontal space to accomodate that number + /// of lines. /// {@endtemplate} final int maxLines;