SuggestionTextField constructor
const
SuggestionTextField({
- Key? key,
- required String fieldName,
- SuggestionFieldConfig config = const SuggestionFieldConfig(),
- OnSuggestionSelected? onSuggestionSelected,
- OnSubmit? onSubmit,
- Widget suggestionBuilder(
- BuildContext context,
- String suggestion,
- VoidCallback onTap,
- VoidCallback? onRemove,
- BoxDecoration? suggestionBoxDecoration,
- TextStyle? suggestionTextStyle,
- TextEditingController? controller,
- FocusNode? focusNode,
- InputDecoration? decoration,
- String? labelText,
- String? hintText,
- TextStyle? style,
- TextAlign textAlign = TextAlign.start,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- bool readOnly = false,
- bool enabled = true,
- bool obscureText = false,
- int? maxLines = 1,
- int? maxLength,
- ValueChanged<
String> ? onChanged, - GestureTapCallback? onTap,
- VoidCallback? onEditingComplete,
- FormFieldValidator<
String> ? validator, - AutovalidateMode? autovalidateMode,
- TextStyle? labelStyle,
- TextStyle? hintStyle,
- Widget? prefixIcon,
- Widget? suffixIcon,
- Color? fillColor,
- bool filled = false,
- EdgeInsetsGeometry? contentPadding,
- InputBorder? border,
- InputBorder? enabledBorder,
- InputBorder? focusedBorder,
Implementation
const SuggestionTextField({
super.key,
required this.fieldName,
this.config = const SuggestionFieldConfig(),
this.onSuggestionSelected,
this.onSubmit,
this.suggestionBuilder,
this.suggestionBoxDecoration,
this.suggestionTextStyle,
this.controller,
this.focusNode,
this.decoration,
this.labelText,
this.hintText,
this.style,
this.textAlign = TextAlign.start,
this.keyboardType,
this.textInputAction,
this.readOnly = false,
this.enabled = true,
this.obscureText = false,
this.maxLines = 1,
this.maxLength,
this.onChanged,
this.onTap,
this.onEditingComplete,
this.validator,
this.autovalidateMode,
this.labelStyle,
this.hintStyle,
this.prefixIcon,
this.suffixIcon,
this.fillColor,
this.filled = false,
this.contentPadding,
this.border,
this.enabledBorder,
this.focusedBorder,
});