Skip to content

Commit

Permalink
feat(fields): add cursorHeight property for form builder text field
Browse files Browse the repository at this point in the history
fix #719
  • Loading branch information
xetra11 committed Sep 14, 2022
1 parent 122fcd4 commit 8340231
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/fields/form_builder_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ class FormBuilderTextField extends FormBuilderField<String> {
/// {@macro flutter.widgets.editableText.cursorWidth}
final double cursorWidth;

/// {@macro flutter.widgets.editableText.cursorHeight}
final double? cursorHeight;

/// {@macro flutter.widgets.editableText.cursorRadius}
final Radius? cursorRadius;

Expand Down Expand Up @@ -307,6 +310,7 @@ class FormBuilderTextField extends FormBuilderField<String> {
this.autofocus = false,
this.autocorrect = true,
this.cursorWidth = 2.0,
this.cursorHeight,
this.keyboardType,
this.style,
this.controller,
Expand Down Expand Up @@ -399,6 +403,7 @@ class FormBuilderTextField extends FormBuilderField<String> {
inputFormatters: inputFormatters,
enabled: state.enabled,
cursorWidth: cursorWidth,
cursorHeight: cursorHeight,
cursorRadius: cursorRadius,
cursorColor: cursorColor,
scrollPadding: scrollPadding,
Expand Down

0 comments on commit 8340231

Please sign in to comment.