mediaQuery static method

MediaQueryData mediaQuery(
  1. MediaQueryData mediaQuery
)

Implementation

static MediaQueryData mediaQuery(MediaQueryData mediaQuery) {
  final insets = EdgeInsets.only(
    bottom: _VirtualKeyboard.minHeight + mediaQuery.padding.bottom,
  );
  return mediaQuery.copyWith(
    viewInsets: insets,
    viewPadding: EdgeInsets.only(
      top: max(insets.top, mediaQuery.padding.top),
      left: max(insets.left, mediaQuery.padding.left),
      right: max(insets.right, mediaQuery.padding.right),
      bottom: max(insets.bottom, mediaQuery.padding.bottom),
    ),
  );
}