检查键盘是否可见
static Future<bool> isKeyboardVisible() async { final bool isKeyboardVisible = await SystemChannels.textInput.invokeMethod('TextInput.hide'); return isKeyboardVisible; }