Skip to content

Commit 8340231

Browse files
committed
feat(fields): add cursorHeight property for form builder text field
fix #719
1 parent 122fcd4 commit 8340231

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/fields/form_builder_text_field.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ class FormBuilderTextField extends FormBuilderField<String> {
160160
/// {@macro flutter.widgets.editableText.cursorWidth}
161161
final double cursorWidth;
162162

163+
/// {@macro flutter.widgets.editableText.cursorHeight}
164+
final double? cursorHeight;
165+
163166
/// {@macro flutter.widgets.editableText.cursorRadius}
164167
final Radius? cursorRadius;
165168

@@ -307,6 +310,7 @@ class FormBuilderTextField extends FormBuilderField<String> {
307310
this.autofocus = false,
308311
this.autocorrect = true,
309312
this.cursorWidth = 2.0,
313+
this.cursorHeight,
310314
this.keyboardType,
311315
this.style,
312316
this.controller,
@@ -399,6 +403,7 @@ class FormBuilderTextField extends FormBuilderField<String> {
399403
inputFormatters: inputFormatters,
400404
enabled: state.enabled,
401405
cursorWidth: cursorWidth,
406+
cursorHeight: cursorHeight,
402407
cursorRadius: cursorRadius,
403408
cursorColor: cursorColor,
404409
scrollPadding: scrollPadding,

0 commit comments

Comments
 (0)