Skip to content
pubscout

filter_list

1.0.3, released 2 years ago by an unverified publisher

Utility to search and filter single or multiple items from a dynamic list.

WASM-ready
$ flutter pub add filter_list
Source repository

What it does

Provides customizable widgets, dialogs, and delegates to select single or multiple items from a list of strings or custom objects with search functionality.

AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to provide a single or multi-selection filter interface for a list of items or objects.
  • You want search capabilities built directly into a selection list or dialog.

Skip it when

  • You only need a standard dropdown or single-select form field without search/multi-select needs.
  • You require complex server-side pagination for filtering large datasets.

Strengths

  • Supports multiple ways to present filters (dialog, widget, delegate).
  • Works with both primitive strings and custom model objects.
  • Extensive customization options including themes and custom choice chip builders.

Weaknesses

  • Relies on client-side filtering which may not be suitable for massive datasets without custom optimization.
  • Breaking changes in past versions required migrating parameters to theme classes.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Not documented

await FilterListDialog.display<User>(
  context,
  listData: userList,
  selectedListData: selectedUserList,
  choiceChipLabel: (user) => user!.name,
  validateSelectedItem: (list, val) => list!.contains(val),
  onItemSearch: (user, query) {
    return user.name!.toLowerCase().contains(query.toLowerCase());
  },
  onApplyButtonClick: (list) {
    setState(() {
      selectedUserList = List.from(list!);
    });
    Navigator.pop(context);
  },
);

Alternatives

Packages that do the same job and could replace filter_list.