viewPadding property

EdgeInsets viewPadding

The parts of the display that are partially obscured by system UI, typically by the hardware display "notches" or the system status bar.

This value remains the same regardless of whether the system is reporting other obstructions in the same physical area of the screen. For example, a software keyboard on the bottom of the screen that may cover and consume the same area that requires bottom padding will not affect this value.

This value is independent of the padding and viewInsets: their values are measured from the edges of the MediaQuery widget's bounds. The bounds of the top level MediaQuery created by WidgetsApp are the same as the window that contains the app. On mobile devices, this will typically be the full screen.

See also:


final EdgeInsets viewPadding;