viewInsets property Null safety

EdgeInsets viewInsets
final

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:

Implementation

final EdgeInsets viewInsets;