Skip to content

Commit

Permalink
Pass onTap callback (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
korzonkiee committed Mar 27, 2020
1 parent 3b9323d commit bc82e1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/fields/form_builder_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class FormBuilderTextField extends StatefulWidget {
final int minLines;
final bool showCursor;
final FormFieldSetter onSaved;
final VoidCallback onTap;

FormBuilderTextField({
Key key,
Expand Down Expand Up @@ -85,6 +86,7 @@ class FormBuilderTextField extends StatefulWidget {
this.minLines,
this.showCursor,
this.onSaved,
this.onTap,
}) : super(key: key);

@override
Expand Down Expand Up @@ -176,6 +178,7 @@ class FormBuilderTextFieldState extends State<FormBuilderTextField> {
expands: widget.expands,
minLines: widget.minLines,
showCursor: widget.showCursor,
onTap: widget.onTap,
);
}

Expand Down

0 comments on commit bc82e1d

Please sign in to comment.