Use widget.enableInteractiveSelection for copy/selectAll in ToobarOptions

pull/141/head
Xin Yao 4 years ago
parent 41056bcc4c
commit 041d24cea0
  1. 4
      lib/widgets/editor.dart

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

Loading…
Cancel
Save