const
LabeledCheckbox(- {Key? key,
- required String label,
- required bool? value,
- required ValueChanged<bool?>? onChanged,
- MainAxisSize mainAxisSize = MainAxisSize.min,
- EdgeInsets? padding,
- double gap = 0.0,
- double? labelFontSize,
- FontWeight? labelFontWeight,
- Color? labelColor,
- Color? labelCheckColor,
- TextStyle? labelStyle,
- bool? labelSoftWrap,
- TextOverflow? labelOverflow,
- int? labelMaxLines,
- TextWidthBasis? labelTextWidthBasis,
- bool tristate = false,
- MouseCursor? mouseCursor,
- Color? activeColor,
- MaterialStateProperty<Color?>? fillColor,
- Color? checkColor,
- Color? focusColor,
- Color? hoverColor,
- MaterialStateProperty<Color?>? overlayColor,
- double? splashRadius,
- MaterialTapTargetSize? materialTapTargetSize,
- VisualDensity? visualDensity,
- FocusNode? focusNode,
- bool autofocus = false,
- OutlinedBorder? shape,
- BorderSide? side}
)
Implementation
const LabeledCheckbox({
Key? key,
required this.label,
required this.value,
required this.onChanged,
this.mainAxisSize = MainAxisSize.min,
this.padding,
this.gap = 0.0,
this.labelFontSize,
this.labelFontWeight,
this.labelColor,
this.labelCheckColor,
this.labelStyle,
this.labelSoftWrap,
this.labelOverflow,
this.labelMaxLines,
this.labelTextWidthBasis,
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,
}) : color = value == true ? labelCheckColor: labelColor,
super(key: key);