viewPadding property
final
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:
- FlutterView, which provides some additional detail about this property and how it relates to padding and viewInsets.
Implementation
final EdgeInsets viewPadding;