Skip to content

Commit

Permalink
feat: add contentInsertionConfiguration property
Browse files Browse the repository at this point in the history
  • Loading branch information
deandreamatias committed May 11, 2023
1 parent 94d277a commit de8dd2a
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 @@ -274,6 +274,9 @@ class FormBuilderTextField extends FormBuilderFieldDecoration<String> {
/// By default `false`
final bool readOnly;

/// {@macro flutter.widgets.editableText.contentInsertionConfiguration}
final ContentInsertionConfiguration? contentInsertionConfiguration;

/// Creates a Material Design text field input.
FormBuilderTextField({
super.key,
Expand Down Expand Up @@ -333,6 +336,7 @@ class FormBuilderTextField extends FormBuilderFieldDecoration<String> {
this.mouseCursor,
this.contextMenuBuilder = _defaultContextMenuBuilder,
this.magnifierConfiguration,
this.contentInsertionConfiguration,
}) : assert(initialValue == null || controller == null),
assert(minLines == null || minLines > 0),
assert(maxLines == null || maxLines > 0),
Expand Down Expand Up @@ -401,6 +405,7 @@ class FormBuilderTextField extends FormBuilderFieldDecoration<String> {
obscuringCharacter: obscuringCharacter,
autofillHints: autofillHints,
magnifierConfiguration: magnifierConfiguration,
contentInsertionConfiguration: contentInsertionConfiguration,
);
},
);
Expand Down

0 comments on commit de8dd2a

Please sign in to comment.