From 799111311e8ab4453b2ca6694d9f616c3ff645e1 Mon Sep 17 00:00:00 2001 From: FelixMittermeier Date: Tue, 9 Mar 2021 22:49:57 +0100 Subject: [PATCH] Bugfix: the "select, copy, paste" toolbar was still accessible even if the interactive selection has been disabled --- lib/widgets/editor.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/widgets/editor.dart b/lib/widgets/editor.dart index 3ed4423f..6c355b22 100644 --- a/lib/widgets/editor.dart +++ b/lib/widgets/editor.dart @@ -275,10 +275,10 @@ class _QuillEditorState extends State widget.placeholder, widget.onLaunchUrl, ToolbarOptions( - copy: true, - cut: true, - paste: true, - selectAll: true, + copy: widget.enableInteractiveSelection ?? true, + cut: widget.enableInteractiveSelection ?? true, + paste: widget.enableInteractiveSelection ?? true, + selectAll: widget.enableInteractiveSelection ?? true, ), theme.platform == TargetPlatform.iOS || theme.platform == TargetPlatform.android,