我尝试在TextField中使用onChange方法检查输入,但在用TextEditingController替换文本后,光标移动到TextField。这个问题只出现在Android平台上。代码TextField(controller:textEditController,onChanged:(content){textEditController.text=checkNumber(content);},)flutter版本[✓]Flutter(Channelmaster,v1.2.2-pre.41,onMacOSX10.14.318D109,localeen-IR)[✓]Androi
我尝试在TextField中使用onChange方法检查输入,但在用TextEditingController替换文本后,光标移动到TextField。这个问题只出现在Android平台上。代码TextField(controller:textEditController,onChanged:(content){textEditController.text=checkNumber(content);},)flutter版本[✓]Flutter(Channelmaster,v1.2.2-pre.41,onMacOSX10.14.318D109,localeen-IR)[✓]Androi