Skip to content
pubscout

chip_list

3.1.0, released 2 years ago by bossbeagle1509.dev

Flutter widget for creating customizable single or multi-select ChoiceChip lists.

WASM-ready
$ flutter pub add chip_list
Source repository

What it does

Creates a customizable horizontal or vertical list of ChoiceChips that allows single or multi-selection. It tracks selected chip indices directly without external state management and supports wrapping.

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

Use it when

  • You need a simple list of choice chips for filtering or selection options.
  • You want customizable colors, borders, and text styles per chip.
  • You need multi-select or single-select chip functionality without heavy state management setup.

Skip it when

  • You require complex state management solutions like Riverpod or Bloc for handling selections.
  • You need heavily specialized non-choice chip Material components not supported by the wrapper.

Strengths

  • Easy to set up and customize background, text, and border colors per chip.
  • Supports multi-select and wrapping content using standard wrap properties.
  • Exposes selected indices directly for straightforward integration with other UI widgets.

Weaknesses

  • Index tracking list must not be marked as constant or the widget will not respond to interactions.
  • Limited to ChoiceChip-based selections.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ChipList(
  listOfChipNames: const ['Beagle', 'Labrador', 'Retriever'],
  activeBgColorList: [Colors.blue],
  inactiveBgColorList: [Colors.white],
  activeTextColorList: [Colors.white],
  inactiveTextColorList: [Colors.blue],
  listOfChipIndicesCurrentlySelected: [0],
)

Alternatives

Packages that do the same job and could replace chip_list.