In the new version of Flutter you can use: bottom: View.of(context).viewInsets.bottom This is more preferable than MediaQuery