From 9ef4cba73431fdb6194270d1ece6b77e74120ac6 Mon Sep 17 00:00:00 2001 From: vovaklh Date: Thu, 26 Jun 2025 16:20:42 +0200 Subject: [PATCH] Add missing properties --- .../lib/src/reactive_languagetool_textfield.dart | 8 ++++++-- packages/reactive_languagetool_textfield/pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/reactive_languagetool_textfield/lib/src/reactive_languagetool_textfield.dart b/packages/reactive_languagetool_textfield/lib/src/reactive_languagetool_textfield.dart index c74826b4..cdd867c8 100644 --- a/packages/reactive_languagetool_textfield/lib/src/reactive_languagetool_textfield.dart +++ b/packages/reactive_languagetool_textfield/lib/src/reactive_languagetool_textfield.dart @@ -125,6 +125,7 @@ class ReactiveLanguageToolTextField extends ReactiveFormField { bool expands = false, int? maxLength, GestureTapCallback? onTap, + void Function(PointerDownEvent)? onTapOutside, VoidCallback? onEditingComplete, List? inputFormatters, double cursorWidth = 2.0, @@ -198,7 +199,7 @@ class ReactiveLanguageToolTextField extends ReactiveFormField { // textAlignVertical: textAlignVertical, textDirection: textDirection, // textCapitalization: textCapitalization, - // autofocus: autofocus, + autoFocus: autofocus, readOnly: readOnly, // showCursor: showCursor, // obscureText: obscureText, @@ -219,7 +220,10 @@ class ReactiveLanguageToolTextField extends ReactiveFormField { // maxLength: maxLength, // onChanged: field.didChange, onTap: onTap, - // onSubmitted: onSubmitted != null ? (_) => onSubmitted() : null, + onTapOutside: onTapOutside, + onTextChange: field.didChange, + onTextSubmitted: + onSubmitted != null ? (_) => onSubmitted() : null, // onEditingComplete: onEditingComplete, // inputFormatters: inputFormatters, // enabled: field.control.enabled, diff --git a/packages/reactive_languagetool_textfield/pubspec.yaml b/packages/reactive_languagetool_textfield/pubspec.yaml index 60b0993a..a10c1501 100644 --- a/packages/reactive_languagetool_textfield/pubspec.yaml +++ b/packages/reactive_languagetool_textfield/pubspec.yaml @@ -1,6 +1,6 @@ name: reactive_languagetool_textfield description: Wrapper around languagetool_textfield to use with reactive_forms. -version: 0.0.1 +version: 0.0.2 repository: https://github.com/artflutter/reactive_forms_widgets/tree/master/packages/reactive_languagetool_textfield issue_tracker: https://github.com/artflutter/reactive_forms_widgets/issues