在使用输入框获取焦点,弹出键盘的时候,会导致屏幕溢出,
解决办法:
resizeToAvoidBottomPadding: false, //输入框抵住键盘
return Scaffold( appBar: AppBar( title: new Text("首页"), ), resizeToAvoidBottomPadding: false, //输入框抵住键盘 内容不随键盘滚动 );