TatweerPrimaryButton constructor

const TatweerPrimaryButton({
  1. Key? key,
  2. required String text,
  3. VoidCallback? onPressed,
  4. Color? buttonColor,
  5. Color? textColor,
  6. double? height,
  7. double? width,
  8. double? borderRadius,
  9. double? elevation,
  10. double? textSize,
  11. IconData? icon,
  12. Color? iconColor,
  13. double? iconSize,
  14. bool useGradient = false,
  15. Gradient? gradient,
  16. bool isLoading = false,
  17. bool isDisabled = false,
  18. String? size,
  19. bool showText = true,
})

Implementation

const TatweerPrimaryButton({
  Key? key,
  required this.text,
  this.onPressed,
  this.buttonColor,
  this.textColor,
  this.height,
  this.width,
  this.borderRadius,
  this.elevation,
  this.textSize,
  this.icon,
  this.iconColor,
  this.iconSize,
  this.useGradient = false,
  this.gradient,
  this.isLoading = false,
  this.isDisabled = false,
  this.size,
  this.showText = true,
}) : super(key: key);