File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
lib/src/editor/raw_editor Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -112,19 +112,9 @@ mixin RawEditorStateTextInputClientMixin on EditorState
112112 _textInputConnection! .show ();
113113 }
114114
115- TextRange _getComposingRange () {
116- if (_lastKnownRemoteTextEditingValue != null &&
117- _lastKnownRemoteTextEditingValue? .composing.isValid == true ) {
118- return _lastKnownRemoteTextEditingValue! .composing;
119- } else if (textEditingValue.composing.isValid == true ) {
120- return textEditingValue.composing;
121- } else {
122- return widget.controller.selection;
123- }
124- }
125-
126115 void _updateComposingRectIfNeeded () {
127- final composingRange = _getComposingRange ();
116+ final composingRange = _lastKnownRemoteTextEditingValue? .composing ??
117+ textEditingValue.composing;
128118 if (hasConnection) {
129119 assert (mounted);
130120 final offset = composingRange.isValid ? composingRange.start : 0 ;
You can’t perform that action at this time.
0 commit comments