UFUButton constructor

const UFUButton({
  1. bool disabled = false,
  2. UFUButtonColorType colorType = UFUButtonColorType.primary,
  3. Gradient? gradient,
  4. double opacity = 1,
  5. VoidCallback? onPressed,
  6. VoidCallback? onLongPress,
  7. Widget? iconWidget,
  8. Widget? suffixIconWidget,
  9. String? text,
  10. UFUButtonSize size = UFUButtonSize.flat,
  11. Color? textColor,
  12. UFUFontWeight fontWeight = UFUFontWeight.bold,
  13. UFUTextSize? textSize = UFUTextSize.heading3,
  14. UFUButtonType? type = UFUButtonType.solid,
  15. double? width,
  16. bool isFlat = true,
  17. UFUButtonRadius? buttonRadius = UFUButtonRadius.roundSquare,
  18. double? radius,
  19. Color? bgColor,
  20. 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,
});