A Flutter Widget displaying a row of Material Chips, sorted according to the provided comparison function.

Flutter library for rendering a row of Material "Chip" buttons that gets sorted according to the given function

How to use

Adding dependency

This package is currently available only through GitHub (we'll soon publish it in the pubrepository). To add this package as a dependency, add the following under dependenciessection in your pubspec.yaml:


By default this dependency will get upgraded whenever a new version is being pushed to the master branch. To avoid that, we recommend that you also specify a ref pointing to a commit you verified:

      ref: COMMIT_ID

For details see the dart documentation on Git dependencies

Using in code

The main widget class in this package is SortedChipsRow. See the library's main file for usage example.

Get This Source Code on GitHub: