问题描述
在文本字段中输入数据时,光标不断向前移动。 在它不存在之前,但一旦我连接 onChange 事件,它就会发生。
我的问题:
我的代码:
Padding(
padding: const EdgeInsets.all(8.0),child: TextField(
controller: descriptionController,decoration: Inputdecoration(
labelText: 'Any Details',hintText: "e.g. Whatever details you want to save",labelStyle: textStyle,border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5.0)
),),keyboardType: TextInputType.text,onChanged: (String string){
setState(() {
if (string != null){
coinorder.description = string;
}
});
},)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)