Added textSelectionControls field in QuillEditor (#748)

pull/765/head
Darwin Morocho 3 years ago committed by GitHub
parent 4c4301f136
commit 7f36b3bf24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 8
      lib/src/widgets/editor.dart
  3. 2
      pubspec.yaml

@ -1,3 +1,5 @@
# [4.1.1]
* Added textSelectionControls field in QuillEditor.
# [4.1.0]
* Added Node to linkActionPickerDelegate.

@ -172,6 +172,7 @@ class QuillEditor extends StatefulWidget {
this.customStyleBuilder,
this.locale,
this.floatingCursorDisabled = false,
this.textSelectionControls,
Key? key})
: super(key: key);
@ -362,6 +363,11 @@ class QuillEditor extends StatefulWidget {
final bool floatingCursorDisabled;
/// allows to create a custom textSelectionControls,
/// if this is null a default textSelectionControls based on the app's theme
/// will be used
final TextSelectionControls? textSelectionControls;
@override
QuillEditorState createState() => QuillEditorState();
}
@ -448,7 +454,7 @@ class QuillEditorState extends State<QuillEditor>
expands: widget.expands,
autoFocus: widget.autoFocus,
selectionColor: selectionColor,
selectionCtrls: textSelectionControls,
selectionCtrls: widget.textSelectionControls ?? textSelectionControls,
keyboardAppearance: widget.keyboardAppearance,
enableInteractiveSelection: widget.enableInteractiveSelection,
scrollPhysics: widget.scrollPhysics,

@ -1,6 +1,6 @@
name: flutter_quill
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
version: 4.1.0
version: 4.1.1
#author: bulletjournal
homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save