Update docs for editable_text (TextField) (#26269)

* update docs for editable_text (TextField)

* typo, clarify behavior when lines > 1
This commit is contained in:
Dan Field 2019-01-09 14:44:42 -08:00 committed by GitHub
parent bc28a220c9
commit 75ebce1c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,8 +346,13 @@ class EditableText extends StatefulWidget {
/// If this is 1 (the default), the text will not wrap, but will scroll /// If this is 1 (the default), the text will not wrap, but will scroll
/// horizontally instead. /// horizontally instead.
/// ///
/// If this is null, there is no limit to the number of lines. If it is not /// If this is null, there is no limit to the number of lines, and the text
/// null, the value must be greater than zero. /// 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} /// {@endtemplate}
final int maxLines; final int maxLines;