Skip to content

Commit

Permalink
fix # 263
Browse files Browse the repository at this point in the history
  • Loading branch information
cedvandenbosch committed Nov 10, 2024
1 parent 9237899 commit fe82fb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/phone_form_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class PhoneFormField extends FormField<PhoneNumber> {
final bool enableSuggestions;
final Widget Function(BuildContext, EditableTextState)? contextMenuBuilder;
final bool? showCursor;
final VoidCallback? onEditingComplete;
final ValueChanged<String>? onSubmitted;
final Function()? onEditingComplete;
final Function(PhoneNumber)? onSubmitted;
final AppPrivateCommandCallback? onAppPrivateCommand;
final Function(PointerDownEvent)? onTapOutside;
final double cursorWidth;
Expand Down
1 change: 1 addition & 0 deletions lib/src/phone_form_field_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class PhoneFormFieldState extends FormFieldState<PhoneNumber> {
enableSuggestions: widget.enableSuggestions,
showCursor: widget.showCursor,
onEditingComplete: widget.onEditingComplete,
onSubmitted: (_) => widget.onSubmitted?.call(controller.value),
onAppPrivateCommand: widget.onAppPrivateCommand,
cursorWidth: widget.cursorWidth,
cursorHeight: widget.cursorHeight,
Expand Down

0 comments on commit fe82fb8

Please sign in to comment.