Skip to content

Commit ffec2d2

Browse files
author
M-Ahal
committed
Added placeholder + prefix icon for cupertino typeahead
1 parent 06af844 commit ffec2d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ class ReactiveCupertinoTypeAhead<T, V> extends ReactiveFormField<T, V> {
112112
SuggestionsController<V>? suggestionsController,
113113
BoxDecoration? decoration,
114114
EdgeInsetsGeometry padding = const EdgeInsets.all(6.0),
115+
String? placeholder,
116+
Widget? prefix,
115117
TextInputType? keyboardType,
116118
TextCapitalization textCapitalization = TextCapitalization.none,
117119
TextInputAction? textInputAction,
@@ -162,6 +164,8 @@ class ReactiveCupertinoTypeAhead<T, V> extends ReactiveFormField<T, V> {
162164
enabled: enabled,
163165
decoration: decoration,
164166
padding: padding,
167+
placeholder: placeholder,
168+
prefix: prefix,
165169
keyboardType: keyboardType,
166170
textCapitalization: textCapitalization,
167171
textInputAction: textInputAction,

0 commit comments

Comments
 (0)