From dcd01672e01ee9ca4e987c1817919281b0d67e01 Mon Sep 17 00:00:00 2001 From: Xin Yao Date: Tue, 22 Jun 2021 21:56:24 -0700 Subject: [PATCH] Replace deprecated textEditingValue method --- lib/src/widgets/text_selection.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/widgets/text_selection.dart b/lib/src/widgets/text_selection.dart index a8748de1..5b4a4888 100644 --- a/lib/src/widgets/text_selection.dart +++ b/lib/src/widgets/text_selection.dart @@ -157,8 +157,9 @@ class EditorTextSelectionOverlay { throw 'Invalid position'; } selectionDelegate - ..textEditingValue = - value.copyWith(selection: newSelection, composing: TextRange.empty) + ..userUpdateTextEditingValue( + value.copyWith(selection: newSelection, composing: TextRange.empty), + SelectionChangedCause.keyboard) ..bringIntoView(textPosition); }