XOutlineButton constructor

const XOutlineButton({
  1. Key? key,
  2. double? width,
  3. required double height,
  4. double? radius,
  5. double? borderWidth,
  6. Color? enableColor,
  7. required String text,
  8. Color? fontColor,
  9. double? fontSize,
  10. FontWeight? fontWeight,
  11. required VoidCallback onPressed,
  12. Color? disableColor,
  13. Color? splashColor,
  14. bool enable = true,
  15. double elevation = 2,
  16. String? beforeTextImgPath,
  17. String? afterTextImgPath,
  18. bool isLoading = false,
  19. EdgeInsetsGeometry? padding,
})

Implementation

const XOutlineButton({
  Key? key,
  this.width,
  required this.height,
  this.radius,
  this.borderWidth,
  Color? enableColor,
  required this.text,
  this.fontColor,
  this.fontSize,
  this.fontWeight,
  required this.onPressed,
  this.disableColor,
  this.splashColor,
  this.enable = true,
  this.elevation = 2,
  this.beforeTextImgPath,
  this.afterTextImgPath,
  this.isLoading = false,
  this.padding,
})  : enableColor = enableColor ?? HColors.FF_765CFE,
      super(key: key);