From 84cd2b4b2241b82d2d00d012d66691f920621c05 Mon Sep 17 00:00:00 2001 From: Brian Lenz Date: Mon, 11 Oct 2021 16:15:43 -0400 Subject: [PATCH] Show TextInputConnection on update In order to fix the issue with continuous typing in iOS with Flutter 2.5.x, we need to explicitly call `TextInputConnection.show()` each time we reinitialize it or else you will have to re-tap/focus the input after each character (which also causes the keyboard to disappear after each character typed). --- lib/src/chips_input.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/chips_input.dart b/lib/src/chips_input.dart index 43f5bf87..366cad7f 100644 --- a/lib/src/chips_input.dart +++ b/lib/src/chips_input.dart @@ -364,6 +364,7 @@ class ChipsInputState extends State> }); _textInputConnection ??= TextInput.attach(this, textInputConfiguration); _textInputConnection?.setEditingState(_value); + _textInputConnection?.show(); } @override