Skip to content

callstackincubator/flutter-sorted-chips-row

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sorted_chips_row

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

sorted chips row

How to use

Adding dependency

Regular

Add the following dependency to your pubspec.yaml file:

 dependencies:
   sorted_chips_row: ^0.1.0

You can read more about adding pub dependencies in Dart documentation.

Bleeding edge

You can also depend on the code from the GitHub repository. To add this package as a dependency from git, add the following under dependencies section in your pubspec.yaml:

  sorted_chips_row:
    git:
      url: https://github.com/callstackincubator/flutter-sorted-chips-row.git

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.

Getting Started with Flutter

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages