想在页面底部放个输入框,结果键盘一直遮住了,原来是布局问题

Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("评论"),
        centerTitle: true,
      ),
      body: new Column(
          children: <Widget>[
            new Flexible(
                child:MyView()
            ),
            new Divider(height: 1.0),
            TextField()
          ]
      )

    );
  }

注意Flexible的用法

参考资料:https://blog.csdn.net/hekaiyou/article/details/72884897

12-10 04:35