ClickButton constructor
const
ClickButton({
- required String title,
- required int index,
- TextStyle checkedTextStyle = const TextStyle(color: Colors.white, fontSize: 20),
- TextStyle unCheckTextStyle = const TextStyle(color: Colors.black38, fontSize: 20),
- BoxDecoration checkedBoxDecoration = const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(10))),
- BoxDecoration unCheckedBoxDecoration = const BoxDecoration(color: Colors.black38, borderRadius: BorderRadius.all(Radius.circular(10))),
- double width = 20,
- double height = 20,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- EdgeInsetsGeometry padding = const EdgeInsets.all(0),
- EdgeInsetsGeometry margin = const EdgeInsets.all(0),
- Color highlightColor = Colors.transparent,
- Color hoverColor = Colors.transparent,
- Color? focusColor,
- Color? splashColor,
- double? radius,
- AlignmentGeometry alignment = Alignment.center,
- double drawPadding = 5.0,
- PositionEnum drawablePosition = PositionEnum.drawableRight,
- Widget? drawableWidget,
- Widget? drawablePressWidget,
- bool enableClick = true,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- MainAxisSize mainAxisSize = MainAxisSize.min,
- Key? key,
Implementation
const ClickButton({
required this.title,
required this.index,
this.checkedTextStyle = const TextStyle(color: Colors.white, fontSize: 20),
this.unCheckTextStyle =
const TextStyle(color: Colors.black38, fontSize: 20),
this.checkedBoxDecoration = const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(10))),
this.unCheckedBoxDecoration = const BoxDecoration(
color: Colors.black38,
borderRadius: BorderRadius.all(Radius.circular(10))),
this.width = 20,
this.height = 20,
this.strutStyle,
this.textAlign,
this.textDirection,
this.locale,
this.softWrap,
this.overflow,
this.textScaleFactor,
this.maxLines,
this.semanticsLabel,
this.padding = const EdgeInsets.all(0),
this.margin = const EdgeInsets.all(0),
this.highlightColor = Colors.transparent,
this.hoverColor = Colors.transparent,
this.focusColor,
this.splashColor,
this.radius,
this.alignment = Alignment.center,
this.drawPadding = 5.0,
this.drawablePosition = PositionEnum.drawableRight,
this.drawableWidget,
this.drawablePressWidget,
this.enableClick = true,
this.crossAxisAlignment = CrossAxisAlignment.center,
this.mainAxisAlignment = MainAxisAlignment.start,
this.mainAxisSize = MainAxisSize.min,
Key? key,
}) : super(key: key);