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

点击搜索框键盘弹出后,怎么做到点击其非输入框区域就能收回键盘呢 #5

Open
ganvinalix opened this issue Sep 25, 2020 · 1 comment

Comments

@ganvinalix
Copy link

点击搜索框键盘弹出后,怎么做到点击其非输入框区域就能收回键盘呢。demo 不会回收键盘用户体验不好吧,除非主导点了那个clearfocus

@koalas8
Copy link

koalas8 commented Sep 28, 2020

点击搜索框键盘弹出后,怎么做到点击其非输入框区域就能收回键盘呢。demo 不会回收键盘用户体验不好吧,除非主导点了那个clearfocus

FocusScope.of(context).requestFocus(FocusNode());

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