I found this code snapshot in Dialog witch is the super class of the AlertDialog, as you can see, effectivePadding will be changed when keyboard is showing, see more about MediaQuery
Dialog
AlertDialog
effectivePadding