diff --git a/lib/web_ui/lib/src/engine/text_editing/text_editing.dart b/lib/web_ui/lib/src/engine/text_editing/text_editing.dart index eb8304702f498..8f938a503cfef 100644 --- a/lib/web_ui/lib/src/engine/text_editing/text_editing.dart +++ b/lib/web_ui/lib/src/engine/text_editing/text_editing.dart @@ -1373,9 +1373,13 @@ class TextEditingChannel { // UITextInput.firstRecForRange. break; + case 'TextInput.setCaretRect': + // No-op: not supported on this platform. + break; + default: - throw StateError( - 'Unsupported method call on the flutter/textinput channel: ${call.method}'); + EnginePlatformDispatcher.instance._replyToPlatformMessage(callback, null); + return; } EnginePlatformDispatcher.instance ._replyToPlatformMessage(callback, codec.encodeSuccessEnvelope(true));