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

Loading…
Cancel
Save