0

This is what my view looks like right now

enter image description here

This is the code I am using

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;
    }

My questions is why am I getting all this extra space underneath the red button ? How Can I fix this ?

MistyD
  • 14,915
  • 32
  • 126
  • 215

1 Answers1

0

Check this to get the height of keyboard. Position your widget accordingly. :)

Keerti Purswani
  • 4,065
  • 3
  • 12
  • 27