Skip to content

Commit

Permalink
Merge pull request #1112 from xetra11/feature/cursor_height_for_formb…
Browse files Browse the repository at this point in the history
…uildertextfield

feat(fields): add cursorHeight property for form builder text field
  • Loading branch information
deandreamatias authored Sep 14, 2022
2 parents 122fcd4 + 8340231 commit 9348c10
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 9348c10

Please sign in to comment.