autocomplete_label library

Classes

AutocompleteLabel<T>
A widget that helps the user to select a label by entering some text and selecting from a list of options.
AutocompleteLabelController<T>
A controller for an editable autocomplete label field. Whenever the user uses the associated AutocompleteLabelController to modify the label field, the label field will update values and the controller will notify its listener.
DryIntrinsicWidth
Same as IntrinsicWidth except that when this widget is instructed to computeDryLayout(), it doesn't invoke that on its child, instead it computes the child's intrinsic width.

Typedefs

FieldViewBuilder = Widget Function(BuildContext context, TextEditingController textEditingController, FocusNode focusNode, VoidCallback onFieldSubmitted)
The type of the Autocomplete callback which returns the widget that contains the input TextField or TextFormField.
OnChanged<T> = void Function(Iterable<T> values)
The type of the callback used by the AutocompleteLabel widget to indicate that the values has changed.
OnSelected<T extends Object> = void Function(int index)
The type of the callback used by the AutocompleteLabel widget to indicate that the user has selected an option.
OptionBoxBuilder<T> = Widget Function(BuildContext context, OnSelected<Object> onSelected, OptionViewBuilder optionViewBuilder, Iterable<T> options, int highlightIndex, AxisDirection boxDirection)
The type of AutocompleteLabel callback, which returns a widget that wraps all options.
OptionsBuilder<T> = Iterable<T> Function(String text)
The type of the AutocompleteLabel callback which computes the list of optional completions for the widget's field based on the text the user has entered so far.
OptionToString<T> = String Function(T option)
The type of the AutocompleteLabel callback that converts an option value to a string which can be displayed in the widget's options menu.
OptionViewBuilder<T> = Widget Function(BuildContext context, OnSelected<Object> onSelected, int index, T option, bool isHighlight)
The type of AutocompleteLabel callback, which returns a widget that displays the specified option.
ValueBoxBuilder<T> = Widget Function(BuildContext context, ValueOnDeleted onDeleted, ValueViewBuilder valueViewBuilder, Widget textField, Iterable<T> values)
The type of AutocompleteLabel callback. It returns a widget that wraps all labels and input boxes textField, and can call valueViewBuilder to create a label widget.
ValueBuilder<T> = T Function(String text)
The type of the AutocompleteLabel callback which computes the value of label for the widget's field based on the text the user has entered so far.
ValueOnDeleted = void Function(int index)
The type of the callback used by the AutocompleteLabel widget to indicate that the user has deleted an entered label.
ValueViewBuilder<T> = Widget Function(BuildContext context, ValueOnDeleted onDeleted, int index, T value)
The type of AutocompleteLabel callback, which returns a widget that displays the specified label.