Unverified Commit 75ebce1c authored by Dan Field's avatar Dan Field Committed by GitHub

Update docs for editable_text (TextField) (#26269)

* update docs for editable_text (TextField)

* typo, clarify behavior when lines > 1
parent bc28a220
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment