XOutlineButton constructor
const
XOutlineButton({
- Key? key,
- double? width,
- required double height,
- double? radius,
- double? borderWidth,
- Color? enableColor,
- required String text,
- Color? fontColor,
- double? fontSize,
- FontWeight? fontWeight,
- required VoidCallback onPressed,
- Color? disableColor,
- Color? splashColor,
- bool enable = true,
- double elevation = 2,
- String? beforeTextImgPath,
- String? afterTextImgPath,
- bool isLoading = false,
- 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);