viewInsets property

EdgeInsets viewInsets

The parts of the display that are completely obscured by system UI, typically by the device's keyboard.

When a mobile device's keyboard is visible viewInsets.bottom corresponds to the top of the keyboard.

This value is independent of the padding and viewPadding. viewPadding is measured from the edges of the MediaQuery widget's bounds. Padding is calculated based on the viewPadding and viewInsets. The bounds of the top level MediaQuery created by WidgetsApp are the same as the window (often the mobile device screen) that contains the app.

See also:


final EdgeInsets viewInsets;