CoderButton constructor

const CoderButton({
  1. Key? key,
  2. required String text,
  3. required dynamic onPressed()?,
  4. Color? backgroundColor,
  5. Color? textColor,
  6. double? height,
  7. double? width,
  8. double? radius,
  9. BorderRadius? borderRadius,
  10. double? paddingH,
  11. double? paddingV,
  12. TextStyle? style,
  13. bool isLoading = false,
  14. Widget? icon,
})

Creates a CoderButton with customizable design and state.

Implementation

const CoderButton({
  super.key,
  required this.text,
  required this.onPressed,
  this.backgroundColor,
  this.textColor,
  this.height,
  this.width,
  this.radius,
  this.borderRadius,
  this.paddingH,
  this.paddingV,
  this.style,
  this.isLoading = false,
  this.icon,
});