https://github.com/callstackincubator/flutter-sorted-chips-row
Flutter library for rendering a row of Material "Chip" buttons that gets sorted according to the given function
https://github.com/callstackincubator/flutter-sorted-chips-row
Last synced: 11 months ago
JSON representation
Flutter library for rendering a row of Material "Chip" buttons that gets sorted according to the given function
- Host: GitHub
- URL: https://github.com/callstackincubator/flutter-sorted-chips-row
- Owner: callstackincubator
- License: apache-2.0
- Created: 2019-04-07T09:33:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T09:36:06.000Z (almost 7 years ago)
- Last Synced: 2024-04-28T06:11:09.117Z (almost 2 years ago)
- Language: Dart
- Size: 55.7 KB
- Stars: 30
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sorted_chips_row
A Flutter Widget displaying a row of [Material Chips](https://material.io/design/components/chips.html), sorted according to the provided comparison function.

## 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](https://www.dartlang.org/tools/pub/dependencies).
#### 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](https://www.dartlang.org/tools/pub/dependencies#git-packages)
### Using in code
The main widget class in this package is [`SortedChipsRow`](https://github.com/callstackincubator/flutter-sorted-chips-row/blob/master/lib/src/sorted_chips_row.dart). See the [library's main file](https://github.com/callstackincubator/flutter-sorted-chips-row/blob/master/lib/sorted_chips_row.dart) for usage example.
## Getting Started with Flutter
This project is a starting point for a Dart [package](https://flutter.dev/developing-packages/), 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](https://flutter.dev/docs), which offers tutorials, samples, guidance on mobile development, and a full API reference.