GFCheckbox constructor
const
GFCheckbox({
- Key? key,
- double size = GFSize.MEDIUM,
- GFCheckboxType type = GFCheckboxType.basic,
- Color activeBgColor = GFColors.PRIMARY,
- Color inactiveBgColor = GFColors.WHITE,
- Color activeBorderColor = GFColors.WHITE,
- Color inactiveBorderColor = GFColors.DARK,
- required ValueChanged<
bool> ? onChanged, - required bool value,
- Widget activeIcon = const Icon(Icons.check, size: 20, color: GFColors.WHITE),
- Widget? inactiveIcon,
- Color customBgColor = GFColors.SUCCESS,
- bool autofocus = false,
- FocusNode? focusNode,
- FormFieldValidator<
bool> ? validator,
GFCheckbox is a small box (as in a checklist) in which to place a check mark to make a selection with various customization options.
Implementation
const GFCheckbox({
Key? key,
this.size = GFSize.MEDIUM,
this.type = GFCheckboxType.basic,
this.activeBgColor = GFColors.PRIMARY,
this.inactiveBgColor = GFColors.WHITE,
this.activeBorderColor = GFColors.WHITE,
this.inactiveBorderColor = GFColors.DARK,
required this.onChanged,
required this.value,
this.activeIcon = const Icon(
Icons.check,
size: 20,
color: GFColors.WHITE,
),
this.inactiveIcon,
this.customBgColor = GFColors.SUCCESS,
this.autofocus = false,
this.focusNode,
this.validator,
}) : super(key: key);