Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mate 20 无法打开键盘 #306

Closed
DaemonSu opened this issue Mar 12, 2019 · 6 comments
Closed

mate 20 无法打开键盘 #306

DaemonSu opened this issue Mar 12, 2019 · 6 comments

Comments

@DaemonSu
Copy link

在mate 20上,登录界面用户名文本框获得焦点好后无法显示键盘,控制台显示:
I/InputMethodManager(25660): showSoftInput
I/InputMethodManager(25660): mServedView =com.shuyu.gsygithub.gsygithubappflutter;view =com.shuyu.gsygithub.gsygithubappflutter;flags =0
W/InputMethodManager(25660): The current service view is not the focus view

但是如果下载发布版本,则可以打开键盘。
大神帮忙分析下是什么问题。

@DaemonSu
Copy link
Author

在荣耀8 上使用没有问题,mate 20上有问题,把安全键盘关闭了也不可以。

@CarGuo
Copy link
Owner

CarGuo commented Mar 12, 2019

你本地flutter sdk版本问题

@DaemonSu
Copy link
Author

具体需要什么版本呢

@CarGuo
Copy link
Owner

CarGuo commented Mar 12, 2019

至少1.2以上

@DaemonSu
Copy link
Author

不是flutter版本问题。
把android 下的build.gradle 文件中的compileSdkVersion 从28改成27 targetSdkVersion 也从28改成27就好了。谢谢作者!

@CarGuo
Copy link
Owner

CarGuo commented Mar 13, 2019

新版本28下已经修复了这个问题了

@CarGuo CarGuo closed this as completed Mar 13, 2019
@CarGuo CarGuo mentioned this issue Nov 21, 2019
@w497763094 w497763094 mentioned this issue Mar 10, 2020
@JevonShi JevonShi mentioned this issue Mar 10, 2020
@HaobinXu HaobinXu mentioned this issue Mar 20, 2020
@luan823230 luan823230 mentioned this issue Mar 24, 2020
@hzg1105 hzg1105 mentioned this issue Jun 14, 2020
@wangkr wangkr mentioned this issue Jul 4, 2020
@jayVRIY jayVRIY mentioned this issue Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants