Skip to content

Commit 4b4c846

Browse files
authored
Add option to paintCursorAboveText (singerdmx#265)
1 parent 71a0cec commit 4b4c846

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/widgets/editor.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ class QuillEditor extends StatefulWidget {
125125
required this.readOnly,
126126
required this.expands,
127127
this.showCursor,
128+
this.paintCursorAboveText,
128129
this.placeholder,
129130
this.enableInteractiveSelection = true,
130131
this.scrollBottomInset = 0,
@@ -165,6 +166,7 @@ class QuillEditor extends StatefulWidget {
165166
final EdgeInsetsGeometry padding;
166167
final bool autoFocus;
167168
final bool? showCursor;
169+
final bool? paintCursorAboveText;
168170
final bool readOnly;
169171
final String? placeholder;
170172
final bool enableInteractiveSelection;
@@ -287,7 +289,7 @@ class _QuillEditorState extends State<QuillEditor>
287289
width: 2,
288290
radius: cursorRadius,
289291
offset: cursorOffset,
290-
paintAboveText: paintCursorAboveText,
292+
paintAboveText: widget.paintCursorAboveText ?? paintCursorAboveText,
291293
opacityAnimates: cursorOpacityAnimates,
292294
),
293295
widget.textCapitalization,

0 commit comments

Comments
 (0)