DDSCheckbox constructor

const DDSCheckbox({
  1. Key? key,
  2. String? labelText,
  3. Border? border,
  4. Color? checkedBorderColor,
  5. Color? uncheckedBorderColor,
  6. Color? checkedColor = ThemeColors.primary,
  7. Color? uncheckedColor = Colors.black,
  8. Icon? icon = const Icon(Icons.check, color: Colors.white, size: 20),
  9. Color? iconColor = Colors.white,
  10. double iconSize = 14.0,
  11. bool? disabled = false,
  12. required CheckboxVariant variant,
  13. CheckboxSize? size = CheckboxSize.medium,
  14. CheckboxShape shape = CheckboxShape.roundedRectangle,
  15. required ValueChanged? onChanged,
  16. bool initialValue = false,
  17. bool labelTextLeft = false,
  18. TextStyle? labelTextStyle,
  19. double? labelFontSize,
  20. FontWeight? labelFontWeight,
  21. double? labelLetterSpacing,
  22. double? labelLineHeight,
  23. TextDecoration? labelDecoration,
  24. Color? labelDecorationColor,
  25. List<Shadow>? labelShadows,
  26. FontStyle? labelFontStyle,
  27. TextAlign? labelTextAlign,
  28. int? labelMaxLines,
  29. TextOverflow? labelOverflow,
  30. 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);