📜  专注于 TextFormField 颤动时键盘消失 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:47.406000             🧑  作者: Mango

代码示例1
This happens when you put GlobalKey in your build function

Try with static or add inside initState ... _formKey ...

static GlobalKey _formKey = new GlobalKey();

Currently the key is recreated every time _LoginState is rebuilt, which defeats
it's purpose.