CButton2 constructor

const CButton2({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. Color? textColor,
  4. TextStyle? textStyle,
  5. Widget? trailingIcon,
  6. Widget? leadingIcon,
  7. bool isDisable = false,
  8. double? horizontalPadding,
  9. double? verticalPadding,
  10. Color? backgroundColor = CColors.primaryA500,
  11. double? borderRadius,
  12. required String title,
  13. double? width,
  14. bool? isOutlined,
  15. double? height,
})

Implementation

const CButton2({
  super.key,
  required this.onPressed,
  this.textColor,
  this.textStyle,
  this.trailingIcon,
  this.leadingIcon,
  this.isDisable = false,
  this.horizontalPadding,
  this.verticalPadding,
  this.backgroundColor = CColors.primaryA500,
  this.borderRadius,
  required this.title,
  this.width,
  this.isOutlined,
  this.height,
});