HMButton constructor

const HMButton({
  1. Key? key,
  2. required String content,
  3. Color? fillColor,
  4. Color? textColor,
  5. HMRadius? radius,
  6. FontWeight? fontWeight,
  7. HMButtonSize? size,
  8. bool fullWidth = false,
  9. HMButtonVariant? buttonVariant,
  10. List<BoxShadow>? boxShadow,
  11. bool isLoading = false,
  12. HMLoader loader = HMLoader.oval,
  13. Widget? icon,
  14. Color? borderColor,
  15. bool? iconAtLeft = true,
  16. required void onPressed(),
  17. bool disabled = false,
  18. bool hidden = false,
})

Implementation

const HMButton({
  super.key,
  required this.content,
  this.fillColor,
  this.textColor,
  this.radius,
  this.fontWeight,
  this.size,
  this.fullWidth = false,
  this.buttonVariant,
  this.boxShadow,
  this.isLoading = false,
  this.loader = HMLoader.oval,
  this.icon,
  this.borderColor,
  this.iconAtLeft = true,
  required this.onPressed,
  this.disabled = false,
  this.hidden = false,
});