SimpleAutoCompleteTextField(- {TextStyle? style,
- InputDecoration decoration = const InputDecoration(),
- ValueSetter<bool>? onFocusChanged,
- StringCallback? textChanged,
- StringCallback? textSubmitted,
- int minLength = 1,
- TextEditingController? controller,
- FocusNode? focusNode,
- bool autofocus = false,
- Color? cursorColor,
- double? cursorWidth,
- Radius? cursorRadius,
- bool? showCursor,
- TextInputType keyboardType = TextInputType.text,
- required GlobalKey<AutoCompleteTextFieldState<String>> key,
- required List<String> suggestions,
- int suggestionsAmount = 5,
- bool submitOnSuggestionTap = true,
- bool clearOnSubmit = true,
- TextInputAction textInputAction = TextInputAction.done,
- TextCapitalization textCapitalization = TextCapitalization.sentences}
)
Implementation
SimpleAutoCompleteTextField(
{TextStyle? style,
InputDecoration decoration: const InputDecoration(),
this.onFocusChanged,
this.textChanged,
this.textSubmitted,
this.minLength = 1,
this.controller,
this.focusNode,
this.autofocus = false,
this.cursorColor,
this.cursorWidth,
this.cursorRadius,
this.showCursor,
TextInputType keyboardType: TextInputType.text,
required GlobalKey<AutoCompleteTextFieldState<String>> key,
required List<String> suggestions,
int suggestionsAmount: 5,
bool submitOnSuggestionTap: true,
bool clearOnSubmit: true,
TextInputAction textInputAction: TextInputAction.done,
TextCapitalization textCapitalization: TextCapitalization.sentences})
: super(
style: style,
decoration: decoration,
textChanged: textChanged,
textSubmitted: textSubmitted,
itemSubmitted: textSubmitted,
keyboardType: keyboardType,
key: key,
suggestions: suggestions,
itemBuilder: null,
itemSorter: null,
itemFilter: null,
cursorColor: cursorColor,
cursorWidth: cursorWidth,
cursorRadius: cursorRadius,
showCursor: showCursor,
suggestionsAmount: suggestionsAmount,
submitOnSuggestionTap: submitOnSuggestionTap,
clearOnSubmit: clearOnSubmit,
textInputAction: textInputAction,
textCapitalization: textCapitalization);