OptimizedSearchField constructor
const
OptimizedSearchField({
- required void onChanged(
- String text
- required String? labelText,
- required List<
String> dropDownList, - required Widget fieldSuffixIcon({
- required VoidCallback onCloseIconTap,
- required VoidCallback onlyCloseMenu,
- ButtonStyle? itemStyle,
- EdgeInsets listPadding = const EdgeInsets.symmetric(vertical: 16),
- double? itemsSpace,
- Clip listClipBehavior = Clip.hardEdge,
- Key? key,
- TextStyle? itemTextStyle,
- Key? textFieldKey,
- bool? showErrorText,
- String? errorText,
- TextEditingController? controller,
- FocusNode? focusNode,
- String? description,
- bool? isRequired,
- Widget customTextField({
- required TextEditingController controller,
- required FocusNode focusNode,
- required GlobalKey<
State< key,StatefulWidget> > - required void onChanged()?,
- required void onSubmitted()?,
- required Widget? suffixIcon,
- required Key? textFieldKey,
- InputDecoration? fieldDecoration,
- bool usePrototype = true,
- List<
TextInputFormatter> ? fieldInputFormatters, - FutureOr<
Iterable< optionsBuilder()?,String> > - TextStyle? labelTextStyle,
- OptionsViewOpenDirection optionsViewOpenDirection = OptionsViewOpenDirection.down,
- TextEditingValue? initValue,
- Widget listItem({})?,
- Key? listKey,
- Key? listItemKey,
- double? listCacheExtent,
- bool listAddSemanticIndexes = true,
- ScrollController? listController,
- String? listRestorationId,
- int? listSemanticChildCount,
- DragStartBehavior listDragStartBehavior = DragStartBehavior.start,
- ScrollPhysics? listPhysics,
- bool? listPrimary,
- Key? fieldIconKey,
- bool useFindChildIndexCallback = true,
Implementation
const OptimizedSearchField({
required this.onChanged,
required this.labelText,
required this.dropDownList,
required this.fieldSuffixIcon,
this.itemStyle,
this.listPadding = const EdgeInsets.symmetric(vertical: 16),
this.itemsSpace,
this.menuMaxHeight = 400,
this.menuMargin = const EdgeInsets.only(top: 4, bottom: 8),
this.menuDecoration,
this.listClipBehavior = Clip.hardEdge,
super.key,
this.itemTextStyle,
this.textFieldKey,
this.showErrorText,
this.errorText,
this.controller,
this.focusNode,
this.description,
this.isRequired,
this.customTextField,
this.fieldDecoration,
this.usePrototype = true,
this.fieldInputFormatters,
this.optionsBuilder,
this.labelTextStyle,
this.optionsViewOpenDirection = OptionsViewOpenDirection.down,
this.initValue,
this.listItem,
this.listKey,
this.listItemKey,
this.listCacheExtent,
this.listAddSemanticIndexes = true,
this.listController,
this.listRestorationId,
this.listSemanticChildCount,
this.listDragStartBehavior = DragStartBehavior.start,
this.listPhysics,
this.listPrimary,
this.fieldIconKey,
this.menuList,
this.useFindChildIndexCallback = true,
});