I have a simple TextField
available Here. It works as expected on the web, but when I run the app on Windows desktop, the TextField
inputs the character twice. For example, when I typed x
and 1
I see xx11
. This is an intermittent problem but happens often, and happens on many computers. I feel like this may be a Flutter bug because the behavior is different across platforms.
class _MyHomePageState extends State<MyHomePage> {
final _controller = TextEditingController();
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 50),
child: TextField(
controller: _controller,
onChanged: (value) {
print(value);
},
),
),
));
}
}
The full source code is available here