In my case, the extra whitespace above the keyboard was caused by the device_preview package. The space disappeared when I disabled it
device_preview