ProKitButton constructor
const
ProKitButton({
- Key? key,
- String? text,
- int? textLines,
- TextAlign? textAlign,
- VoidCallback? onPressed,
- bool showIcon = false,
- String? iconAsset,
- Widget? customIconWidget,
- Color? iconColor,
- Color? buttonColor,
- EdgeInsetsGeometry? padding,
- TextStyle? textStyle,
- BorderRadiusGeometry? borderRadius,
- double? elevation,
- ShapeBorder? shape,
- double? width,
- double? height,
- AlignmentGeometry? alignment,
- ProKitButtonStyle buttonStyle = ProKitButtonStyle.raised,
- Gradient? gradient,
- bool isDisabled = false,
- bool isLoading = false,
- String? tooltip,
- 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,
});