Replace deprecated textEditingValue method (#271)

* Replace deprecated textEditingValue method

* Change to SelectionChangedCause.drag
pull/273/head
X Code 4 years ago committed by GitHub
parent 5318eeaa32
commit 08fc027712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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.drag)
..bringIntoView(textPosition); ..bringIntoView(textPosition);
} }

Loading…
Cancel
Save