关于TextField输入汉字的时候在iOS模拟器上会把拼音以及汉字都自动显示在输入框
来源:13-3 基于TextField实现顶部SearchBar-2【封装组件出神入化】

慕瓜瓜皮001
2020-04-01
TextField(
controller: _controller,
onChanged: _onChanged,
autofocus: true,
style: TextStyle(
fontSize: 18,
color: Colors.black,
fontWeight: FontWeight.w300),
decoration: InputDecoration(
contentPadding: EdgeInsets.fromLTRB(5, 0, 5, 0),
border: InputBorder.none,
hintText: widget.hint ?? '',
hintStyle: TextStyle(fontSize: 15),
),
)
写回答
2回答
-
慕瓜瓜皮001
提问者
2020-04-02
问题解决了,去更新下flutter的SDK就可以了,应该是他的一个bug
00 -
慕瓜瓜皮001
提问者
2020-04-01
老师求解答,我下载了flutter_trip项目也是这样的比如输入想要输入“哈”,最终会显示“hha哈”
00
相似问题