ClickButton constructor

const ClickButton({
  1. required String title,
  2. required int index,
  3. TextStyle checkedTextStyle = const TextStyle(color: Colors.white, fontSize: 20),
  4. TextStyle unCheckTextStyle = const TextStyle(color: Colors.black38, fontSize: 20),
  5. BoxDecoration checkedBoxDecoration = const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(10))),
  6. BoxDecoration unCheckedBoxDecoration = const BoxDecoration(color: Colors.black38, borderRadius: BorderRadius.all(Radius.circular(10))),
  7. double width = 20,
  8. double height = 20,
  9. StrutStyle? strutStyle,
  10. TextAlign? textAlign,
  11. TextDirection? textDirection,
  12. Locale? locale,
  13. bool? softWrap,
  14. TextOverflow? overflow,
  15. double? textScaleFactor,
  16. int? maxLines,
  17. String? semanticsLabel,
  18. EdgeInsetsGeometry padding = const EdgeInsets.all(0),
  19. EdgeInsetsGeometry margin = const EdgeInsets.all(0),
  20. Color highlightColor = Colors.transparent,
  21. Color hoverColor = Colors.transparent,
  22. Color? focusColor,
  23. Color? splashColor,
  24. double? radius,
  25. AlignmentGeometry alignment = Alignment.center,
  26. double drawPadding = 5.0,
  27. PositionEnum drawablePosition = PositionEnum.drawableRight,
  28. Widget? drawableWidget,
  29. Widget? drawablePressWidget,
  30. bool enableClick = true,
  31. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  32. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  33. MainAxisSize mainAxisSize = MainAxisSize.min,
  34. 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);