简体   繁体   中英

How to not dismiss the keyboard when the showMenu method invoke in flutter?

我有ComposePage有一个TextField和action按钮,当按下按钮显示菜单时,但我不希望关闭键盘,在颤抖中该怎么做!

将此代码添加到onPress函数中。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM