From ecd36480c6485ddcfa112c8e114c618d0266728a Mon Sep 17 00:00:00 2001 From: ZHANG YINGANG Date: Sat, 6 Jun 2026 16:13:57 +0800 Subject: [PATCH] fix: add viewId to TextInputConfiguration for Flutter 3.44+ Windows On Windows desktop with Flutter 3.44+, text input in the terminal requires `viewId` to be passed to `TextInputConfiguration`. Without this, `TextInput.attach()` cannot properly route text input on Windows, resulting in unresponsive keyboard input in the terminal. Co-Authored-By: Claude Opus 4.8 --- lib/src/ui/custom_text_edit.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/ui/custom_text_edit.dart b/lib/src/ui/custom_text_edit.dart index 1d33c7a2..0489cd2f 100644 --- a/lib/src/ui/custom_text_edit.dart +++ b/lib/src/ui/custom_text_edit.dart @@ -160,6 +160,7 @@ class CustomTextEditState extends State with TextInputClient { _connection!.show(); } else { final config = TextInputConfiguration( + viewId: View.of(context).viewId, inputType: widget.inputType, inputAction: widget.inputAction, keyboardAppearance: widget.keyboardAppearance,