Flutter 弹出键盘屏幕溢出问题
解决方案1 【推荐】
resizeToAvoidBottomPadding: false, //输入框抵住键盘
return Scaffold(
appBar: AppBar(
title: new Text("首页"),
),
resizeToAvoidBottomPadding: false, //输入框抵住键盘 内容不随键盘滚动
);
解决方案2
SingleChildScrollView
解决方案3
ListView
解决方案1 【推荐】
resizeToAvoidBottomPadding: false, //输入框抵住键盘
return Scaffold(
appBar: AppBar(
title: new Text("首页"),
),
resizeToAvoidBottomPadding: false, //输入框抵住键盘 内容不随键盘滚动
);
解决方案2
SingleChildScrollView
解决方案3
ListView