expands property
Whether this widget's height will be sized to fill its widget. Defaults to false.
If set to true and wrapped in a widget widget like Expanded or SizedBox, the input will expand to fill the widget.
maxLines and minLines must both be null when this is set to true, otherwise an error is thrown.
See the examples in maxLines for the complete picture of how maxLines, minLines, and expands interact to produce various behaviors.
Input that matches the height of its widget:
const Expanded(
child: FTextField(maxLines: null, expands: true),
)
Implementation
final bool expands;