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 { ...@@ -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;
......
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