isKeyboardVisible static method

Future<bool> isKeyboardVisible()

检查键盘是否可见

Implementation

static Future<bool> isKeyboardVisible() async {
  final bool isKeyboardVisible =
      await SystemChannels.textInput.invokeMethod('TextInput.hide');
  return isKeyboardVisible;
}