CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String label,
  3. dynamic onPressed()?,
  4. Color? primary,
  5. Color? borderColor,
  6. Color? labelColor,
  7. double? fontSize,
  8. FontWeight? fontWeight,
  9. String? iconData,
  10. double? height,
  11. double? borderWidth,
  12. double? elevation,
  13. Color? boxShadowColor,
  14. bool isBorder = false,
  15. double? width,
  16. double? borderRadiusAll,
  17. double? contentPadding,
  18. double? marginHorizontal,
  19. double? marginVertical,
  20. double? contentHorizontalPadding,
  21. double? contentVerticalPadding,
  22. bool isDisable = false,
  23. String? prefixImage,
  24. String? suffixImage,
  25. double? suffixImageHeight,
  26. double? suffixImageWidth,
  27. Color? suffixImageColor,
  28. double? prefixImageHeight,
  29. double? prefixImageWidth,
  30. Color? prefixImageColor,
  31. bool loading = false,
  32. Color? loadingColor,
  33. Color? disableColor,
  34. double? loadingHeight,
  35. double? loadingWidth,
  36. double loadingStrokeWidth = 4.0,
})

Implementation

const CustomButton({
  Key? key,
  required this.label,
  this.onPressed,
  this.primary,
  this.borderColor,
  this.labelColor,
  this.fontSize,
  this.fontWeight,
  this.iconData,
  this.height,
  this.borderWidth,
  this.elevation,
  this.boxShadowColor,
  this.isBorder = false,
  this.width,
  this.borderRadiusAll,
  this.contentPadding,
  this.marginHorizontal,
  this.marginVertical,
  this.contentHorizontalPadding,
  this.contentVerticalPadding,
  this.isDisable = false,
  this.prefixImage,
  this.suffixImage,
  this.suffixImageHeight,
  this.suffixImageWidth,
  this.suffixImageColor,
  this.prefixImageHeight,
  this.prefixImageWidth,
  this.prefixImageColor,
  this.loading = false,
  this.loadingColor,
  this.disableColor,
  this.loadingHeight,
  this.loadingWidth,
  this.loadingStrokeWidth = 4.0,
}) : super(key: key);