kskdmn/checkbox_formfield
Flutter 패키지
- Stars
- 3
- Forks
- 9
- 최근 푸시(UTC)
- 2024. 5. 30.
- 프로젝트 상태
- 활성
언어DartKotlinSwiftObjective-C
사용 중인 의존성
의존성 목록 2 개
- flutter
{"sdk":"flutter"} - flutter_test개발 의존성
{"sdk":"flutter"}
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
README 펼치기 / 접기
checkbox_formfield
A few kinds of checkbox that can be used as FormField
Getting Started
This library currently has two Widgets.
- CheckboxListTileFormField: Use CheckboxListTile in Form
- CheckboxIconFormField: Use two Icons as if they consist a checkbox and also in Form
Demo
Demo
Usage sample
Please check example/lib in this library.
Specifications
CheckboxListTileFormField
| Parameter | Description |
|---|---|
| key | FormField.key |
| title | CheckboxListTile.title |
| context | Provide a default color to errorColor |
| onSaved | FormField.onSaved |
| validator | FormField.validator |
| initialValue | FormField.initialValue |
| autovalidateMode | FormField.autovalidateMode |
| enabled | Whether the checkbox is enabled |
| dense | CheckboxListTile.dense |
| errorColor | Color of error message Default: Theme.errorColor (context is given), Colors.red (otherwise) |
| activeColor | CheckboxListTile.activeColor |
| checkColor | CheckboxListTile.checkColor |
| controlAffinity | CheckboxListTile.controlAffinity |
| secondary | CheckboxListTile.secondary |
| contentPadding | CheckboxListTile.contentPadding |
| autofocus | CheckboxListTile.autofocus |
CheckboxIconFormField
| Parameter | Description |
|---|---|
| key | FormField.key |
| context | Provide a default color to errorColor |
| onSaved | FormField.onSaved |
| initialValue | FormField.initialValue |
| autovalidateMode | FormField.autovalidateMode |
| enabled | Whether the checkbox is enabled |
| trueIcon | IconData if true Default: Icons.check |
| falseIcon | IconData if false Default: Icons.check_box_outline_blank |
| trueIconColor | Color if true Default: Theme.colorScheme.secondary (if context is given), Theme.iconTheme.color (otherwise) |
| falseIconColor | Color if false Default: Theme.iconTheme.color |
| disabledColor | Color if disabled Default: Theme.disabledColor |
| padding | paddingDefault: 24.0 |
| iconSize | Icon.size |