Skip to content

Commit

Permalink
Merge pull request #1248 from flutter-form-builder-ecosystem/feat-119…
Browse files Browse the repository at this point in the history
…9-add-contentInsertionConfiguration-property

Add contentInsertionConfiguration property to FormBuilderTextField
  • Loading branch information
deandreamatias authored May 11, 2023
2 parents dfc5b62 + de8dd2a commit bce51df
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 bce51df

Please sign in to comment.