resizeToAvoidBottomPadding isn't defined resizeToAvoidBottomPadding isn't defined dart dart

resizeToAvoidBottomPadding isn't defined


Yes, actually, there is a comment inside of the API.

This flag is deprecated. Please use resizeToAvoidBottomInset instead.

So the idea would be to replace the behaviour as stated here.

resizeToAvoidBottomInset param definition:

If true the [body] and the scaffold's floating widgets should sizethemselves to avoid the onscreen keyboard whose height is defined by theambient [MediaQuery]'s [MediaQueryData.viewInsets] bottom property.For example, if there is an onscreen keyboard displayed above thescaffold, the body can be resized to avoid overlapping the keyboard, whichprevents widgets inside the body from being obscured by the keyboard.