CustomCheckbox constructor

const CustomCheckbox({
  1. required bool? value,
  2. required ValueChanged<bool?>? onChanged,
  3. Key? key,
  4. bool tristate = false,
  5. MouseCursor? mouseCursor,
  6. Color? activeColor,
  7. WidgetStateProperty<Color?>? fillColor,
  8. Color? checkColor,
  9. Color? focusColor,
  10. Color? hoverColor,
  11. WidgetStateProperty<Color?>? overlayColor,
  12. double? splashRadius,
  13. MaterialTapTargetSize? materialTapTargetSize,
  14. VisualDensity? visualDensity,
  15. FocusNode? focusNode,
  16. bool autofocus = false,
  17. OutlinedBorder? shape,
  18. BorderSide? side,
  19. bool isError = false,
  20. String? semanticLabel,
  21. String? titleText,
  22. Widget? title,
  23. EdgeInsetsGeometry? margin,
  24. EdgeInsetsGeometry? padding,
})

Checkbox 复选框组件

Implementation

const CustomCheckbox({
  required this.value,
  required this.onChanged,
  super.key,
  this.tristate = false,
  this.mouseCursor,
  this.activeColor,
  this.fillColor,
  this.checkColor,
  this.focusColor,
  this.hoverColor,
  this.overlayColor,
  this.splashRadius,
  this.materialTapTargetSize,
  this.visualDensity,
  this.focusNode,
  this.autofocus = false,
  this.shape,
  this.side,
  this.isError = false,
  this.semanticLabel,
  this.titleText,
  this.title,
  this.margin,
  this.padding,
});