这就是我现在的样子
这是我正在使用的代码
Widget getCustomKeyboardButtons()
{
Row buttonRow = new Row(
children: <Widget>[
new IconButton(
icon: Icon(
Icons.arrow_drop_down,
color: Colors.blueGrey,
),
onPressed: () {
FocusScope.of(context).requestFocus(new FocusNode());
}),
Expanded(child:new MaterialButton(
onPressed: null,
child: new Text("Press me"),
color: Colors.red,
),),
],
);
var col = Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
getMainContainer(),
buttonRow,
]);
SafeArea s = new SafeArea(child: col,);
return s;
}
我的问题是,为什么我要在红色按钮下面得到所有这些多余的空间?我该如何解决?