Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added inputOnTap property which gets passed to the TextFormFields "onTap" #419

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/src/widgets/input_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class InternationalPhoneNumberInput extends StatefulWidget {
final TextStyle? selectorTextStyle;
final InputBorder? inputBorder;
final InputDecoration? inputDecoration;
final GestureTapCallback? inputOnTap;
final InputDecoration? searchBoxDecoration;
final Color? cursorColor;
final TextAlign textAlign;
Expand Down Expand Up @@ -117,6 +118,7 @@ class InternationalPhoneNumberInput extends StatefulWidget {
this.selectorTextStyle,
this.inputBorder,
this.inputDecoration,
this.inputOnTap,
this.searchBoxDecoration,
this.textAlign = TextAlign.start,
this.textAlignVertical = TextAlignVertical.center,
Expand Down Expand Up @@ -433,6 +435,7 @@ class _InputWidgetView
decoration: state.getInputDecoration(widget.inputDecoration),
textAlign: widget.textAlign,
textAlignVertical: widget.textAlignVertical,
onTap: widget.inputOnTap,
onEditingComplete: widget.onSubmit,
onFieldSubmitted: widget.onFieldSubmitted,
autovalidateMode: widget.autoValidateMode,
Expand Down