maintainBottomViewPadding property

bool maintainBottomViewPadding
final

Specifies whether the SafeArea should maintain the viewPadding instead of the padding when consumed by the viewInsets of the current context's MediaQuery, defaults to false.

For example, if there is an onscreen keyboard displayed above the SafeArea, the padding can be maintained below the obstruction rather than being consumed. This can be helpful in cases where your layout contains flexible widgets, which could visibly move when opening a software keyboard due to the change in the padding value. Setting this to true will avoid the UI shift.

Implementation

final bool maintainBottomViewPadding