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