在使用输入框获取焦点,弹出键盘的时候,会导致屏幕溢出,
解决办法:
resizeToAvoidBottomPadding: false, //输入框抵住键盘
return Scaffold( appBar: AppBar( title: new Text("首页"), ), resizeToAvoidBottomPadding: false, //输入框抵住键盘 内容不随键盘滚动 );
在使用输入框获取焦点,弹出键盘的时候,会导致屏幕溢出,
解决办法:
resizeToAvoidBottomPadding: false, //输入框抵住键盘
return Scaffold( appBar: AppBar( title: new Text("首页"), ), resizeToAvoidBottomPadding: false, //输入框抵住键盘 内容不随键盘滚动 );
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。