InputButton constructor

const InputButton({
  1. Key? key,
  2. required void onPressed()?,
  3. Color? fontColor,
  4. required String buttonText,
  5. Color? color,
  6. Color? borderColor,
  7. FontWeight? fontWeight,
  8. double? fontSize,
  9. ButtonSize? buttonSize = ButtonSize.medium,
  10. double? height,
  11. double? width,
  12. EdgeInsets? padding,
  13. double? borderRadius,
  14. Widget? prefixIcon,
  15. int? iconAndTextGap,
  16. Widget? suffixIcon,
  17. Color? disableColor,
  18. Color? disableBorderColor,
  19. bool isOutlined = false,
  20. bool isLoading = false,
  21. bool enabled = true,
  22. String? disableMessage,
})

Implementation

const InputButton({
  super.key,
  required this.onPressed,
  this.fontColor,
  required this.buttonText,
  this.color,
  this.borderColor,
  this.fontWeight,
  this.fontSize,
  this.buttonSize = ButtonSize.medium,
  this.height,
  this.width,
  this.padding,
  this.borderRadius,
  this.prefixIcon,
  this.iconAndTextGap,
  this.suffixIcon,
  this.disableColor,
  this.disableBorderColor,

  /// works only if enabled
  this.isOutlined = false,

  /// shows loading instead of text
  this.isLoading = false,
  this.enabled = true,
  this.disableMessage,
});