ButtonPrimary constructor

const ButtonPrimary({
  1. Key? key,
  2. dynamic onTap(
    1. BuildContext context
    )?,
  3. required String text,
  4. Color? textColor,
  5. Color? buttonColor,
  6. double radius = -1,
  7. double elevation = -1,
  8. IconData? icon,
  9. bool disabled = false,
  10. bool upperCase = false,
  11. bool widgetOnBrandedSurface = false,
  12. bool expand = true,
  13. bool layoutVertically = false,
  14. bool isNegative = false,
  15. bool isNeutral = false,
  16. IconData? leftIcon,
  17. IconData? rightIcon,
  18. PrimaryButtonTextSize? buttonTextSize = PrimaryButtonTextSize.small,
  19. bool? isBold = true,
  20. bool? animate = true,
})

Implementation

const ButtonPrimary({
  super.key,
  this.onTap,
  required this.text,
  this.textColor,
  this.buttonColor,
  this.radius = -1,
  this.elevation = -1,
  this.icon,
  this.disabled = false,
  this.upperCase = false,
  this.widgetOnBrandedSurface = false,
  this.expand = true,
  this.layoutVertically = false,
  this.isNegative = false,
  this.isNeutral = false,
  this.leftIcon,
  this.rightIcon,
  this.buttonTextSize = PrimaryButtonTextSize.small,
  this.isBold = true,
  this.animate = true,
});