Skip to content

Commit 353bb84

Browse files
authored
Merge pull request #198 from vovaklhdella/fix/missed-onSubmit
Add missing properties to ReactiveLanguageToolTextField
2 parents 601c29a + 9ef4cba commit 353bb84

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/reactive_languagetool_textfield/lib/src/reactive_languagetool_textfield.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ class ReactiveLanguageToolTextField<T> extends ReactiveFormField<T, String> {
125125
bool expands = false,
126126
int? maxLength,
127127
GestureTapCallback? onTap,
128+
void Function(PointerDownEvent)? onTapOutside,
128129
VoidCallback? onEditingComplete,
129130
List<TextInputFormatter>? inputFormatters,
130131
double cursorWidth = 2.0,
@@ -198,7 +199,7 @@ class ReactiveLanguageToolTextField<T> extends ReactiveFormField<T, String> {
198199
// textAlignVertical: textAlignVertical,
199200
textDirection: textDirection,
200201
// textCapitalization: textCapitalization,
201-
// autofocus: autofocus,
202+
autoFocus: autofocus,
202203
readOnly: readOnly,
203204
// showCursor: showCursor,
204205
// obscureText: obscureText,
@@ -219,7 +220,10 @@ class ReactiveLanguageToolTextField<T> extends ReactiveFormField<T, String> {
219220
// maxLength: maxLength,
220221
// onChanged: field.didChange,
221222
onTap: onTap,
222-
// onSubmitted: onSubmitted != null ? (_) => onSubmitted() : null,
223+
onTapOutside: onTapOutside,
224+
onTextChange: field.didChange,
225+
onTextSubmitted:
226+
onSubmitted != null ? (_) => onSubmitted() : null,
223227
// onEditingComplete: onEditingComplete,
224228
// inputFormatters: inputFormatters,
225229
// enabled: field.control.enabled,

packages/reactive_languagetool_textfield/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: reactive_languagetool_textfield
22
description: Wrapper around languagetool_textfield to use with reactive_forms.
3-
version: 0.0.1
3+
version: 0.0.2
44
repository: https://github.com/artflutter/reactive_forms_widgets/tree/master/packages/reactive_languagetool_textfield
55
issue_tracker: https://github.com/artflutter/reactive_forms_widgets/issues
66

0 commit comments

Comments
 (0)