keyboardPadding method

double keyboardPadding(
  1. double bottomOffset
)

Implementation

double keyboardPadding(double bottomOffset) {
  if (Platform.isAndroid) {
    return info.viewInsets.bottom;
  } else {
    return (info.viewInsets.bottom - bottomOffset) > 0
        ? (info.viewInsets.bottom - bottomOffset)
        : 0;
  }
}