From 409801e94da2c6008cca0dbbe6b9663c6f91f73d Mon Sep 17 00:00:00 2001 From: qubian Date: Tue, 19 Jul 2022 11:26:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20flutter2.10.5=EF=BC=8Ceditor?= =?UTF-8?q?=E4=B8=8A=E9=9C=80=E8=A6=81=E5=AE=9E=E7=8E=B04=E4=B8=AA?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/widgets/raw_editor.dart | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/src/widgets/raw_editor.dart b/lib/src/widgets/raw_editor.dart index e950267..7919692 100644 --- a/lib/src/widgets/raw_editor.dart +++ b/lib/src/widgets/raw_editor.dart @@ -719,6 +719,26 @@ class RawEditorState extends EditorState @override bool get wantKeepAlive => widget.focusNode.hasFocus; + + @override + void copySelection(SelectionChangedCause cause) { + + } + + @override + void cutSelection(SelectionChangedCause cause) { + + } + + @override + Future pasteText(SelectionChangedCause cause) async { + return ; + } + + @override + void selectAll(SelectionChangedCause cause) { + + } } class _Editor extends MultiChildRenderObjectWidget { -- Gitee