Flutter 输入框高度自适应
import 'package:flutter/material.dart';
class TestPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Material(
child: Container(
child: SingleChildScrollView(
scrollDirection: Axis.vertical,
reverse: true,
child: TextField(
maxLines: null,
),
)));
}
}