mediaQuery static method

MediaQueryData mediaQuery(
  1. MediaQueryData mediaQuery
)

Adds the keyboard insets to the given mediaQuery.

Implementation

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