From 59071021f5ec3535d3d19f5984d82901bc60563c Mon Sep 17 00:00:00 2001 From: FelixMittermeier <33794642+FelixMittermeier@users.noreply.github.com> Date: Tue, 9 Mar 2021 22:55:14 +0100 Subject: [PATCH] Bugfix: the "select, copy, paste" toolbar was still accessible even if the interactive selection has been disabled (#71) --- 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,