From aee756ff1e1d9049d7ad12b3a92129c2353af358 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 11 Mar 2021 15:32:27 -0800 Subject: [PATCH] Update composing rect documentation (#77951) The TextInput.setMarkedRect message was originally added to support positioning the IME candidates menu on iOS, but is now used by iOS, Windows, macOS, and Linux desktop embedders. --- packages/flutter/lib/src/services/text_input.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/services/text_input.dart b/packages/flutter/lib/src/services/text_input.dart index 43eac8f0cd..b1516a0b6d 100644 --- a/packages/flutter/lib/src/services/text_input.dart +++ b/packages/flutter/lib/src/services/text_input.dart @@ -1010,7 +1010,8 @@ class TextInputConnection { /// The given `rect` can not be null. If any of the 4 coordinates of the given /// [Rect] is not finite, a [Rect] of size (-1, -1) will be sent instead. /// - /// The information is currently only used on iOS, for positioning the IME bar. + /// This information is used for positioning the IME candidates menu on each + /// platform. void setComposingRect(Rect rect) { assert(rect != null); if (rect == _cachedRect)