CxButton constructor

const CxButton({
  1. Key? key,
  2. String? text,
  3. IconData? icon,
  4. CxButtonType? type = CxButtonType.solid,
  5. Color? color = const Color.fromARGB(255, 50, 73, 245),
  6. Color? textColor,
  7. Color? iconColor,
  8. double? radius = 20,
  9. EdgeInsetsGeometry? padding = const EdgeInsets.all(8),
  10. double? iconSize,
  11. double? textSize,
  12. bool shadow = true,
  13. double? width,
  14. double? height,
  15. bool disabled = false,
  16. void onTap()?,
})

Implementation

const CxButton({
  super.key,
  this.text,
  this.icon,
  this.type = CxButtonType.solid,
  this.color = const Color.fromARGB(255, 50, 73, 245),
  this.textColor,
  this.iconColor,
  this.radius = 20,
  this.padding = const EdgeInsets.all(8),
  this.iconSize,
  this.textSize,
  this.shadow = true,
  this.width,
  this.height,
  this.disabled = false,
  this.onTap,
});