checkbox_formfield 0.1.0+2 checkbox_formfield: ^0.1.0+2 copied to clipboard
This package contains checkbox widgets that can be used as FormField. As of April 2020, Flutter does not provide easy-to-use checkbox FormField to developers, so this package instead can provide a sim [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add checkbox_formfield
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
checkbox_formfield: ^0.1.0+2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:checkbox_formfield/checkbox_formfield.dart';