UFUButton constructor
const
UFUButton({
- bool disabled = false,
- UFUButtonColorType colorType = UFUButtonColorType.primary,
- Gradient? gradient,
- double opacity = 1,
- VoidCallback? onPressed,
- VoidCallback? onLongPress,
- Widget? iconWidget,
- Widget? suffixIconWidget,
- String? text,
- UFUButtonSize size = UFUButtonSize.flat,
- Color? textColor,
- UFUFontWeight fontWeight = UFUFontWeight.bold,
- UFUTextSize? textSize = UFUTextSize.heading3,
- UFUButtonType? type = UFUButtonType.solid,
- double? width,
- bool isFlat = true,
- UFUButtonRadius? buttonRadius = UFUButtonRadius.roundSquare,
- double? radius,
- Color? bgColor,
- Key? key,
Implementation
const UFUButton({
this.disabled = false,
this.colorType = UFUButtonColorType.primary,
this.gradient,
this.opacity = 1,
this.onPressed,
this.onLongPress,
this.iconWidget,
this.suffixIconWidget,
this.text,
this.size = UFUButtonSize.flat,
this.textColor,
// this.fontFamily = UFUFontFamily.poppins,
this.fontWeight = UFUFontWeight.bold,
this.textSize = UFUTextSize.heading3,
this.type = UFUButtonType.solid,
this.width,
this.isFlat = true,
this.buttonRadius = UFUButtonRadius.roundSquare,
this.radius,
this.bgColor,
super.key,
});