From 3d5273b7fd4c34065b075b84c1626fdedb653ec4 Mon Sep 17 00:00:00 2001 From: 21pages Date: Wed, 7 Jun 2023 22:46:20 +0800 Subject: [PATCH] only enable_soft_keyboard in CustomAlertDialog on android Signed-off-by: 21pages --- flutter/lib/common.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index 6e552fc2f..7468bdf35 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -848,7 +848,7 @@ class CustomAlertDialog extends StatelessWidget { if (!scopeNode.hasFocus) scopeNode.requestFocus(); }); bool tabTapped = false; - if (isMobile) gFFI.invokeMethod("enable_soft_keyboard", true); + if (isAndroid) gFFI.invokeMethod("enable_soft_keyboard", true); return FocusScope( node: scopeNode,