InputButton constructor
const
InputButton({
- Key? key,
- required void onPressed()?,
- Color? fontColor,
- required String buttonText,
- Color? color,
- Color? borderColor,
- FontWeight? fontWeight,
- double? fontSize,
- ButtonSize? buttonSize = ButtonSize.medium,
- double? height,
- double? width,
- EdgeInsets? padding,
- double? borderRadius,
- Widget? prefixIcon,
- int? iconAndTextGap,
- Widget? suffixIcon,
- Color? disableColor,
- Color? disableBorderColor,
- bool isOutlined = false,
- bool isLoading = false,
- bool enabled = true,
- 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,
});