viewInsets property
EdgeInsets
get
viewInsets
Gets the screen view insets (e.g., keyboard height).
Example:
final insets = context.viewInsets;
Implementation
EdgeInsets get viewInsets => MediaQuery.viewInsetsOf(this);