choice 1.0.0-dev.1 choice: ^1.0.0-dev.1 copied to clipboard
A successor to smart_select and chips_choice with cleaner, more flexible, and composable API for creating inline or prompted single or multiple choice widgets.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add choice
With Flutter:
$ flutter pub add choice
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
choice: ^1.0.0-dev.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:choice/choice.dart';