DDSCheckbox constructor
const
DDSCheckbox({
- Key? key,
- String? labelText,
- Border? border,
- Color? checkedBorderColor,
- Color? uncheckedBorderColor,
- Color? checkedColor = ThemeColors.primary,
- Color? uncheckedColor = Colors.black,
- Icon? icon = const Icon(Icons.check, color: Colors.white, size: 20),
- Color? iconColor = Colors.white,
- double iconSize = 14.0,
- bool? disabled = false,
- required CheckboxVariant variant,
- CheckboxSize? size = CheckboxSize.medium,
- CheckboxShape shape = CheckboxShape.roundedRectangle,
- required ValueChanged? onChanged,
- bool initialValue = false,
- bool labelTextLeft = false,
- TextStyle? labelTextStyle,
- double? labelFontSize,
- FontWeight? labelFontWeight,
- double? labelLetterSpacing,
- double? labelLineHeight,
- TextDecoration? labelDecoration,
- Color? labelDecorationColor,
- List<
Shadow> ? labelShadows, - FontStyle? labelFontStyle,
- TextAlign? labelTextAlign,
- int? labelMaxLines,
- TextOverflow? labelOverflow,
- double? spacing,
Implementation
const DDSCheckbox({
Key? key,
this.labelText,
this.border,
this.checkedBorderColor,
this.uncheckedBorderColor,
this.checkedColor = ThemeColors.primary,
this.uncheckedColor = Colors.black,
this.icon = const Icon(
Icons.check,
color: Colors.white,
size: 20,
),
this.iconColor = Colors.white,
this.iconSize = 14.0,
this.disabled = false,
required this.variant,
this.size = CheckboxSize.medium,
this.shape = CheckboxShape.roundedRectangle,
required this.onChanged,
this.initialValue = false,
this.labelTextLeft = false,
this.labelTextStyle,
this.labelFontSize,
this.labelFontWeight,
this.labelLetterSpacing,
this.labelLineHeight,
this.labelDecoration,
this.labelDecorationColor,
this.labelShadows,
this.labelFontStyle,
this.labelTextAlign,
this.labelMaxLines,
this.labelOverflow,
this.spacing,
}) : super(key: key);