paginated_typeahead library

Classes

PaginatedTypeAhead<T>
A custom autocomplete search field with pagination support.
SuggestionsController<T>
A controller to manually open, close, or toggle the suggestions dropdown overlay.

Typedefs

LoadMoreErrorBuilder = Widget Function(BuildContext context, VoidCallback retry)
Builds the retry widget when loading the next page fails.
PaginatedSuggestionsCallback<T> = FutureOr<(List<T>?, bool)> Function(String query, int page)
Called to retrieve paginated suggestions for query and page.
SuggestionsAnimationBuilder = Widget Function(BuildContext context, Animation<double> animation, Widget child)
Builds the animation for opening and closing the suggestions box.
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(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.