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

pull/75/head
FelixMittermeier 4 years ago committed by GitHub
parent 6b7f7b4db6
commit 59071021f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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