Add option to paintCursorAboveText (#265)

pull/267/head
hyouuu 4 years ago committed by GitHub
parent 71a0cec282
commit 4b4c84696f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lib/src/widgets/editor.dart

@ -125,6 +125,7 @@ class QuillEditor extends StatefulWidget {
required this.readOnly,
required this.expands,
this.showCursor,
this.paintCursorAboveText,
this.placeholder,
this.enableInteractiveSelection = true,
this.scrollBottomInset = 0,
@ -165,6 +166,7 @@ class QuillEditor extends StatefulWidget {
final EdgeInsetsGeometry padding;
final bool autoFocus;
final bool? showCursor;
final bool? paintCursorAboveText;
final bool readOnly;
final String? placeholder;
final bool enableInteractiveSelection;
@ -287,7 +289,7 @@ class _QuillEditorState extends State<QuillEditor>
width: 2,
radius: cursorRadius,
offset: cursorOffset,
paintAboveText: paintCursorAboveText,
paintAboveText: widget.paintCursorAboveText ?? paintCursorAboveText,
opacityAnimates: cursorOpacityAnimates,
),
widget.textCapitalization,

Loading…
Cancel
Save