flutter_typeahead library
Classes
-
CupertinoTypeAheadField<
T> - A widget that shows suggestions above a text field while the user is typing.
-
RawTypeAheadField<
T> - A widget that shows suggestions above a text field while the user is typing.
-
SuggestionsController<
T> - A controller of a SuggestionsField and its SuggestionsBox.
-
SuggestionsControllerProvider<
T> - Injects a SuggestionsController into the widget tree.
- TypeAheadCupertinoDefaults
- A set of Cupertino specific default builders used by a CupertinoTypeAheadField.
-
TypeAheadField<
T> - A widget that shows suggestions above a text field while the user is typing.
- TypeAheadMaterialDefaults
- A set of Material specific default builders used by a TypeAheadField.
Enums
- SuggestionsFocusState
- The state of focus of the suggestions box and field.
Typedefs
-
SuggestionsAnimationBuilder
= Widget Function(BuildContext context, Animation<
double> animation, Widget child) - Builds the animation for opening and closing the suggestions box.
-
SuggestionsCallback<
T> = FutureOr< List< Function(String search)T> ?> -
Called to retrieve the suggestions for
search. - SuggestionsDecorationBuilder = Widget Function(BuildContext context, Widget child)
- Builds the decoration of the suggestions box.
-
SuggestionSelectionCallback<
T> = void Function(T suggestion) - Called when a suggestion is selected.
- SuggestionsErrorBuilder = Widget Function(BuildContext context, Object error)
- Builds a widget for the error in the suggestions box.
- SuggestionsFieldBuilder = Widget Function(BuildContext context, TextEditingController controller, FocusNode focusNode)
- Builds the text field of the suggestions field.
-
SuggestionsItemBuilder<
T> = Widget Function(BuildContext context, T value) - Builds a widget for a suggestion in the suggestions box.
-
SuggestionsListBuilder
= Widget Function(BuildContext context, List<
Widget> children) - Builds the list of suggestions in the suggestions box.