From 614b50935e1f5a7dfd33338cdcaa6789e20a28cd Mon Sep 17 00:00:00 2001 From: LahaLuhem Date: Tue, 3 Jun 2025 12:28:42 +0200 Subject: [PATCH 1/3] ReactiveCupertinoTypeAhead: listen to `formControl.field.enabled` property --- .../lib/src/reactive_cupertino_typeahead.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart b/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart index b0e70a95..91470662 100644 --- a/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart +++ b/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart @@ -162,7 +162,7 @@ class ReactiveCupertinoTypeAhead extends ReactiveFormField { return CupertinoTextField( controller: controller, focusNode: focusNode, - enabled: enabled, + enabled: field.control.enabled, decoration: decoration, padding: padding, placeholder: placeholder, From 77a6d5461a7fb7bd66cc904e7d70e629f64348c8 Mon Sep 17 00:00:00 2001 From: LahaLuhem Date: Tue, 3 Jun 2025 15:36:50 +0200 Subject: [PATCH 2/3] ReactiveTypeahead add TextInputAction --- .../reactive_flutter_typeahead/lib/src/reactive_typeahead.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart b/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart index a2e9416f..42226497 100644 --- a/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart +++ b/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart @@ -118,6 +118,7 @@ class ReactiveTypeAhead extends ReactiveFormField { TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, TextEditingController? textEditingController, + TextInputAction? textInputAction, bool autofocus = false, bool readOnly = false, bool? showCursor, @@ -171,6 +172,7 @@ class ReactiveTypeAhead extends ReactiveFormField { textDirection: textDirection, textAlign: textAlign, textAlignVertical: textAlignVertical, + textInputAction: textInputAction, autofocus: autofocus, readOnly: readOnly, showCursor: showCursor, From f50444c176f51e02e4daeaa3202fc35d45db2692 Mon Sep 17 00:00:00 2001 From: LahaLuhem Date: Tue, 3 Jun 2025 15:59:05 +0200 Subject: [PATCH 3/3] TypeAheadFields: bind TypeAheadField controller to the Reactive wrapper controller --- .../lib/src/reactive_cupertino_typeahead.dart | 1 + .../reactive_flutter_typeahead/lib/src/reactive_typeahead.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart b/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart index 91470662..a6920867 100644 --- a/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart +++ b/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart @@ -145,6 +145,7 @@ class ReactiveCupertinoTypeAhead extends ReactiveFormField { } return CupertinoTypeAheadField( + controller: controller, suggestionsCallback: suggestionsCallback, itemBuilder: itemBuilder, onSelected: (value) { diff --git a/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart b/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart index 42226497..527f604a 100644 --- a/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart +++ b/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart @@ -144,6 +144,7 @@ class ReactiveTypeAhead extends ReactiveFormField { } return TypeAheadField( + controller: controller, suggestionsCallback: suggestionsCallback, itemBuilder: itemBuilder, onSelected: (value) {