ProKitButton constructor

const ProKitButton({
  1. Key? key,
  2. String? text,
  3. int? textLines,
  4. TextAlign? textAlign,
  5. VoidCallback? onPressed,
  6. bool showIcon = false,
  7. String? iconAsset,
  8. Widget? customIconWidget,
  9. Color? iconColor,
  10. Color? buttonColor,
  11. EdgeInsetsGeometry? padding,
  12. TextStyle? textStyle,
  13. BorderRadiusGeometry? borderRadius,
  14. double? elevation,
  15. ShapeBorder? shape,
  16. double? width,
  17. double? height,
  18. AlignmentGeometry? alignment,
  19. ProKitButtonStyle buttonStyle = ProKitButtonStyle.raised,
  20. Gradient? gradient,
  21. bool isDisabled = false,
  22. bool isLoading = false,
  23. String? tooltip,
  24. String? semanticLabel,
})

Implementation

const ProKitButton({
  super.key,
  this.text,
  this.textLines,
  this.textAlign,
  this.onPressed,
  this.showIcon = false,
  this.iconAsset,
  this.customIconWidget,
  this.iconColor,
  this.buttonColor,
  this.padding,
  this.textStyle,
  this.borderRadius,
  this.elevation,
  this.shape,
  this.width,
  this.height,
  this.alignment,
  this.buttonStyle = ProKitButtonStyle.raised,
  this.gradient,
  this.isDisabled = false,
  this.isLoading = false,
  this.tooltip,
  this.semanticLabel,
});