Replace deprecated textEditingValue method

pull/271/head
Xin Yao 4 years ago
parent 5318eeaa32
commit dcd01672e0
  1. 5
      lib/src/widgets/text_selection.dart

@ -157,8 +157,9 @@ class EditorTextSelectionOverlay {
throw 'Invalid position'; throw 'Invalid position';
} }
selectionDelegate selectionDelegate
..textEditingValue = ..userUpdateTextEditingValue(
value.copyWith(selection: newSelection, composing: TextRange.empty) value.copyWith(selection: newSelection, composing: TextRange.empty),
SelectionChangedCause.keyboard)
..bringIntoView(textPosition); ..bringIntoView(textPosition);
} }

Loading…
Cancel
Save