SmartAutoSuggestView<T> constructor
const
SmartAutoSuggestView<T> ({
- Key? key,
- SmartAutoSuggestDataSource<
T> ? dataSource, - @Deprecated('Use smartController instead') TextEditingController? controller,
- SmartAutoSuggestController<
T> ? smartController, - OnChangeSmartAutoSuggestBox? onChanged,
- ValueChanged<
SmartAutoSuggestItem< ? onSelected,T> ?> - SmartAutoSuggestItemBuilder<
T> ? itemBuilder, - WidgetOrNullBuilder? noResultsFoundBuilder,
- SmartAutoSuggestSorter<
T> ? sorter, - TextStyle? style,
- InputDecoration? decoration,
- Color? cursorColor,
- double? cursorHeight,
- Radius cursorRadius = const Radius.circular(2.0),
- double cursorWidth = 1.5,
- bool? showCursor,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
- TextInputAction? textInputAction,
- FocusNode? focusNode,
- bool autofocus = false,
- bool enableKeyboardControls = true,
- bool enabled = true,
- List<
TextInputFormatter> ? inputFormatters, - double listMaxHeight = kSmartAutoSuggestBoxPopupMaxHeight,
- Widget waitingBuilder(
- BuildContext context
- double tileHeight = kComboBoxItemHeight,
- TextInputType keyboardType = TextInputType.text,
- int? maxLength,
- bool showListWhenEmpty = true,
- SmartAutoSuggestTheme? theme,
Creates an inline auto-suggest view.
Implementation
const SmartAutoSuggestView({
super.key,
this.dataSource,
@Deprecated('Use smartController instead') this.controller,
this.smartController,
this.onChanged,
this.onSelected,
this.itemBuilder,
this.noResultsFoundBuilder,
this.sorter,
this.style,
this.decoration,
this.cursorColor,
this.cursorHeight,
this.cursorRadius = const Radius.circular(2.0),
this.cursorWidth = 1.5,
this.showCursor,
this.keyboardAppearance,
this.scrollPadding = const EdgeInsets.all(20.0),
this.selectionHeightStyle = ui.BoxHeightStyle.tight,
this.selectionWidthStyle = ui.BoxWidthStyle.tight,
this.textInputAction,
this.focusNode,
this.autofocus = false,
this.enableKeyboardControls = true,
this.enabled = true,
this.inputFormatters,
this.listMaxHeight = kSmartAutoSuggestBoxPopupMaxHeight,
this.waitingBuilder,
this.tileHeight = kComboBoxItemHeight,
this.keyboardType = TextInputType.text,
this.maxLength,
this.showListWhenEmpty = true,
this.theme,
}) : autovalidateMode = AutovalidateMode.disabled,
validator = null;