📅  最后修改于: 2022-03-11 14:56:47.406000             🧑  作者: Mango
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.