resizeToAvoidBottomPadding property

bool resizeToAvoidBottomPadding
final

If true the sheet content should size itself to avoid the onscreen keyboard whose height is defined by the ambient MediaQuery's MediaQueryData.viewInsets property.

This will affect viewport constraints and pixel offsets for all sheet states.

If you are using SafeArea and TextFields inside ToggleSheet and keyboard may appear in. Make sure that you set maintainBottomViewPadding: false inside SafeArea widget to prevent safe area appear at top of keyboard.

Otherwise, set maintainBottomViewPadding: true.

Implementation

final bool resizeToAvoidBottomPadding;