mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
When the embedder receives a TextInput.clearClient message from the framework (typically when a text field loses focus), if the user is currently inputting composing text using an IME, commit the composing text, end composing, and clear the IME's composing state. This also exposes a public `editingState` getter on FlutterTextInputPlugin as part of the TestMethods informal protocol. This allows us to get at the text editing state as a dictionary in tests. Issue: https://github.com/flutter/flutter/issues/92060