📜  控制器错误空值颤动 - 无论代码示例

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

代码示例1
That's a problem on your end. The issue is that you are persisting objects 
inside a StatelessWidget.

You shouldn't.
Opening the keyboard tends to rebuild the whole screen (which is fine). But in 
your case rebuilding cause your TextEditingController to be GCed because you 
stored them inside a StatelessWidget