Is there a way to dynamically change the Flutter TextField's maxLines?
问题 I have a TextField like this: new Flexible( fit: FlexFit.loose, child: new Container( alignment: FractionalOffset.topLeft, child: new TextField( decoration: new InputDecoration( hintText: 'Add a note', ), maxLines: 1, onChanged: (value) => _showSaveOptions(value), ), ), ), I'd like to have my TextField to start out with maxLines set to 1, but as I type, I would like the maxLines to increase, so that all the text remains on the page and I don't have to scroll up. However, I also don't want to