TatweerPrimaryButton constructor
const
TatweerPrimaryButton({
- Key? key,
- required String text,
- VoidCallback? onPressed,
- Color? buttonColor,
- Color? textColor,
- double? height,
- double? width,
- double? borderRadius,
- double? elevation,
- double? textSize,
- IconData? icon,
- Color? iconColor,
- double? iconSize,
- bool useGradient = false,
- Gradient? gradient,
- bool isLoading = false,
- bool isDisabled = false,
- String? size,
- 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);