Bugfix: the "select, copy, paste" toolbar was still accessible even if the interactive selection has been disabled

pull/71/head
FelixMittermeier 4 years ago
parent 6b7f7b4db6
commit 799111311e
  1. 8
      lib/widgets/editor.dart

@ -275,10 +275,10 @@ class _QuillEditorState extends State<QuillEditor>
widget.placeholder, widget.placeholder,
widget.onLaunchUrl, widget.onLaunchUrl,
ToolbarOptions( ToolbarOptions(
copy: true, copy: widget.enableInteractiveSelection ?? true,
cut: true, cut: widget.enableInteractiveSelection ?? true,
paste: true, paste: widget.enableInteractiveSelection ?? true,
selectAll: true, selectAll: widget.enableInteractiveSelection ?? true,
), ),
theme.platform == TargetPlatform.iOS || theme.platform == TargetPlatform.iOS ||
theme.platform == TargetPlatform.android, theme.platform == TargetPlatform.android,

Loading…
Cancel
Save