我有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.