Flutter 弹出键盘屏幕溢出问题

解决方案1 【推荐】

resizeToAvoidBottomPadding: false, //输入框抵住键盘
return Scaffold(
  appBar: AppBar(
    title: new Text("首页"),
  ),
  resizeToAvoidBottomPadding: false, //输入框抵住键盘 内容不随键盘滚动
);

 解决方案2

SingleChildScrollView

 解决方案3

ListView

 

posted @ 2020-03-19 16:16  安徽胡峻  阅读(521)  评论(0编辑  收藏  举报