Skip to content

Commit

Permalink
Merge pull request #1309 from KSokhal/main
Browse files Browse the repository at this point in the history
Exposed spell check configuration from TextField
  • Loading branch information
deandreamatias authored Oct 20, 2023
2 parents 4f58141 + 8b21957 commit 5ba56f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/fields/form_builder_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ class FormBuilderTextField extends FormBuilderFieldDecoration<String> {
/// {@macro flutter.widgets.editableText.contentInsertionConfiguration}
final ContentInsertionConfiguration? contentInsertionConfiguration;

/// {@macro flutter.widgets.EditableText.spellCheckConfiguration}
///
/// If [SpellCheckConfiguration.misspelledTextStyle] is not specified in this
/// configuration, then [materialMisspelledTextStyle] is used by default.
final SpellCheckConfiguration? spellCheckConfiguration;

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

0 comments on commit 5ba56f6

Please sign in to comment.