HMButton constructor
const
HMButton({
- Key? key,
- required String content,
- Color? fillColor,
- Color? textColor,
- HMRadius? radius,
- FontWeight? fontWeight,
- HMButtonSize? size,
- bool fullWidth = false,
- HMButtonVariant? buttonVariant,
- List<
BoxShadow> ? boxShadow, - bool isLoading = false,
- HMLoader loader = HMLoader.oval,
- Widget? icon,
- Color? borderColor,
- bool? iconAtLeft = true,
- required void onPressed(),
- bool disabled = 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,
});