only enable_soft_keyboard in CustomAlertDialog on android

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-06-07 22:46:20 +08:00
parent ee50eccda0
commit 3d5273b7fd

View File

@ -848,7 +848,7 @@ class CustomAlertDialog extends StatelessWidget {
if (!scopeNode.hasFocus) scopeNode.requestFocus(); if (!scopeNode.hasFocus) scopeNode.requestFocus();
}); });
bool tabTapped = false; bool tabTapped = false;
if (isMobile) gFFI.invokeMethod("enable_soft_keyboard", true); if (isAndroid) gFFI.invokeMethod("enable_soft_keyboard", true);
return FocusScope( return FocusScope(
node: scopeNode, node: scopeNode,