您在以下问题中提到: 有没有办法动态更改Flutter TextField的maxLines? 在您的代码中设置如下:new TextField( maxLines: null, keyboardType: TextInputType.multiline, );