Im-Kevin / cool_ui

用flutter实现一些我认为好看的UI控件,有Popover,仿Weui的Toast,自定义键盘
Apache License 2.0
460 stars 74 forks source link

问题:两个使用自定义键盘的 TextField,来回切换键盘会消失,需要重新点击弹出 #15

Closed ReverseScale closed 3 years ago

ReverseScale commented 5 years ago

你好啊,非常感谢作者的代码,我在使用中遇到一个问题。

我创建了两个 TextField,当我在一个 TextField 输入完成后,切入第二个 TextField 时,键盘收回了,需要手动再次弹出,不知道有什么方法可以让键盘保持呢

ReverseScale commented 5 years ago

我找到方法了:

1.注释 TextInput.clearClient 中对键盘的 hide 和 clear case 'TextInput.clearClient': // hideKeyboard(animation: true); // clearKeyboard(); break; 2.注释 openKeyboard 中的拦截。 static openKeyboard() { // if (_keyboardEntry != null) return;

Im-Kevin commented 5 years ago

这貌似不是最合适的方法,我找时间再看看

Im-Kevin commented 4 years ago

我这边无法重现该问题