Skip to content

Commit 4ced8f1

Browse files
authored
Remove onChangeHandler from textField (#668)
There's no need for 'onChangedHandler' while we have 'didChange'
1 parent 524e638 commit 4ced8f1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/src/fields/form_builder_text_field.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,6 @@ class FormBuilderTextField extends FormBuilderField<String> {
389389
final state = field as _FormBuilderTextFieldState;
390390
/*final effectiveDecoration = (decoration ?? const InputDecoration())
391391
.applyDefaults(Theme.of(field.context).inputDecorationTheme);*/
392-
void onChangedHandler(String value) {
393-
/*if (onChanged != null) {
394-
onChanged(value);
395-
}*/
396-
state.didChange(value);
397-
}
398392

399393
return TextField(
400394
controller: state._effectiveController,
@@ -419,7 +413,6 @@ class FormBuilderTextField extends FormBuilderField<String> {
419413
minLines: minLines,
420414
expands: expands,
421415
maxLength: maxLength,
422-
onChanged: onChangedHandler,
423416
onTap: onTap,
424417
onEditingComplete: onEditingComplete,
425418
onSubmitted: onSubmitted,

0 commit comments

Comments
 (0)